3 ms·
Fascinating in-depth write up > Another idea would be to render tiles and modifying the tiles content by just modulating the bit fields or map a set of tiles d
by nico 3y ago
Fascinating in-depth write up
> Another idea would be to render tiles and modifying the tiles content by just modulating the bit fields or map a set of tiles differently or do simple transforms using bitwise operations such as mirroring, once you have a complete set of tile operations you can combine them to compose detailed patterns / images, ones could also animate tiles individually by switching values in a cyclic fashion…
Could something like the wave function collapse algorithm[1] be used for this, ie. generating tiles that are similar to a certain base pattern?
[1] https://github.com/mxgmn/WaveFunctionCollapse https://github.com/mxgmn/WaveFunctionCollapse
- msarchet 3y agoThis does seem like a great use case for it.
- boywitharupee 3y agois this known as a procedural generation?
- nico 3y agoYes, it is probably its main usage The author of the GitHub repo is a pretty successful game author and has used it many times for his games Here’s a talk by him talking about procedural generation using wave function collapse: https://m.youtube.com/watch?v=0bcZb-SsnrA https://m.youtube.com/watch?v=0bcZb-SsnrA
- Sharlin 3y agoHuh, that’s a cool algorithm. Thanks for bringing it up!