darozak / Advolition

1 stars 0 forks source link

Can I use a wave function collapse function to generate dungeons? #5

Closed darozak closed 6 months ago

darozak commented 7 months ago

I should be able to create complex random dungeons by using a wave function collapse function to combine tiles in a unique manner. I found a video that provides a good tutorial on how to code this in JavaScript.

darozak commented 7 months ago

I've started by creating a function to Dungeon function to report the object index of symbol represented on a map (https://github.com/darozak/Advolition/commit/566af9153d346fb29a6de03d5e822601580c52f6).

darozak commented 7 months ago

Here's a great WFC site that discusses a process which chops up tiles into smaller sections and recombines them. It also points to examples in different languages: https://github.com/mxgmn/WaveFunctionCollapse

darozak commented 7 months ago

Here's a WFC implementation that uses JavaScript: https://github.com/kchapelier/wavefunctioncollapse

darozak commented 6 months ago

I've decided to use an existing dungeon generation code instead.