Last week, I shared a video with a friend of mine that explained the Wave Function Collapse and that got me excited about procgen again! So I thought I’d go back into exploring WFC with the help of Daniel Shiffman’s video linked above ✨
If you are not able to play the game, you can watch a video here.
This is sort of a brute force approach to that; essentially a walker that fills neighbours and backtracks, so it does run into a bunch of dead ends and endless recursions so there are fail safes to stop that. Apart from that, it is slow as you will soon see. With the colourful tileset, you should keep the grid size small; but the other white and grey tileset should work fine even at 30×30.