There were really two kinds of houses in ancient China. There were poor people’s houses (which is most of them). And there were rich people’s houses (there were not very many of these).
Poor people’s houses were small and made out of cheap materials. They generally had just one room, made of rammed earth (like mudbrick). The roof was usually made of thatch. These houses were a lot like poor people’s houses in West Asia or Egypt or Greece, India, or Africa.
Rich people’s houses were much bigger. They had a high wall made of rammed earth all the way around them, with no windows and just one door, to keep the family safe. As soon as you went through this door, you would see another short wall in front of you. This was the screen wall, which kept people from seeing into your courtyard as they walked by, for privacy. All around the courtyard there were rooms. In a very fancy house there were two storeys, and there was a balcony on the inside of the upper storey overlooking the courtyard.