Understanding the code behind kirupa ville

i understand if it’s not meant to be shared but i’m a very curious person and right now i’m wondering how exactly a pixel city is seen. (i’ve been fascinated ever since i saw mister wong’s soupartment a long time ago)

i took a look at the code and i have some idea on how it’s done, the templates make sure that each building has a predictable width which allows it to be placed within the roadmap accurately.

what i didn’t quite understand was the grid itself, is this a array (i thought not because there is no reall programming involved anywhere, just html and css it seems)
is there a real array or grid where empty tiles of road get replaced with buildings or is there a bit of code i missed where the road is made into a repeating tile and the buildings are placed on top of that instead of replacing tiles. (once the city is full wouldn’t that be a bit redundant with tons of invisible roadtiles being loaded where buildings are obscuring them?)

either way i understand the basics but i’d love to learn more on how it was achieved, i’ve seen a lot of pixel cities and scapes but not all of them ideally coded.