Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
A jam entry

Procgen MansionView game page »

Procedurally generated mansions
Submitted by watabou (@watawatabou) with 2 days, 23 hours before the deadline

Play generator

Visit Procgen Mansion's game page

Leave a comment

Log in with your itch.io account to leave a comment.

Comments

(+1)

Lovely buildings! I included it in my ProcJam compilation video series, if you’d like to take a look. :)

Submitted(+1)

Really liked how these looked. Nice work.

They all seem remarkably livable for procedurally generated mansions.

Developer

Thank you!

Submitted(+1)

Those mansions look so good! Is it possible to quickly explain how your algorithm is choosing to "grow" the house (where to add a piece, which size, that kind of detail)?

Developer (1 edit)

Thanks!

I'm going to create a small post about it, but roughly it works like this:

  1. I choose a size of mansion in "squares". The smallest possible mansion is 4 squares big, the largest is about 200 I guess. When it's too big it stops looking like a a single building, more like a cluster of several ones.
  2. Then I generate a polyomino of that size. This becomes a ground plan of a mansion. The smallest mansions look like Tetris pieces when viewed from the top.
  3. Then I split this shape into rectangular "wings". For that I look for the largest rectangle within it, then the next and the next etc.  Large wings have more floors, small wings have fewer of them (unless they can be seamlessly attached to large ones). One-square wings become towers.
  4. At the end I build a 3D model of this stuff.

That's it.

(+1)

Very interesting!  All we need now is the generator for the inside of the mansion to go with the mansion itself!  Perhaps some tables for contents, people, story hooks....??

Developer(+1)

I am definitely going to try it at some point :)