A.I. Level Design guided by Texture (Wave Function Collapse #3)

Subscribers:
822
Published on ● Video Link: https://www.youtube.com/watch?v=iHaiVX8k740



Duration: 6:00
295 views
9


2022-06-01. This is my own implementation of an algorithm that is inspired by, and almost certainly very similar to, the Wave Function Collapse algorithm made by Maxim Gumin: https://github.com/mxgmn/WaveFunctionCollapse

I have created a bunch of input textures to fee the algorithm, in hopes of generating output that could be used for level design. While the texture output themselves is simply pixelated images of a few colors, you can image that this could be used as the tile design for a level. Various images give different results, such as side-scroller platformer levels, or top-down dungeon crawlers.

There is no density control, so the "evolution" of the procedural image is not controlled by an external constraint (such as density), and can just run off into an undesired direction, and without maintaining the consistency of the original input image. Sometimes this is desirable, so it will go off and render many extra elements, and sometimes it skips entire sections of the input that you'd prefer it to focus on.

This resultant images can be post processed in many ways, from simply assigning tiles, or by fixing up the results to make sure all pathways make sense.

Enjoy!

Playlists:
--------------------
- Wave Function Collapse: https://youtube.com/watch?v=iHaiVX8k740&list=PLjnbT4UISq0Y8vYnrSauHkBKgOBHXFFdf
- Voxel Software 3D: https://youtube.com/watch?v=uadGU-stF-w&list=PLjnbT4UISq0bQF1g85tE9jTrKfEtdRYlY
- Ray Casting 3D: https://youtube.com/watch?v=SkaPYZOKPQg&list=PLjnbT4UISq0YcFtRFjFQqK0g6ONNCtrvY
- Graph-All Calculator 2D: https://youtube.com/watch?v=kLSc7bZW2Bs&list=PLjnbT4UISq0YLgynFSpLzml4BMC6TDZL2
- Parallax Side-Scroll Shooter 2D: https://youtube.com/watch?v=l9bIYkZepPo&list=PLjnbT4UISq0Y_7IAN_zUzxgZnfhXxo_0Q
- Road Pseudo 3D: https://youtube.com/watch?v=rA4g4VX7ys8&list=PLjnbT4UISq0bnfd1RC3M4PgTgkmhlkikV
- Arena Shooter 2D: https://youtube.com/watch?v=VKjiuq437t0&list=PLjnbT4UISq0adw__Y9B2eXA0LL35TyORU

Websites:
---------------------
- GitHub: https://github.com/JDoucette
- Indie Game Studio: http://xona.com
- Blog: http://thefirstpixel.com







Tags:
gamedev
monogame
indie
development
graphics
engine
xona
firstpixel
pixel
pixelart
retro
coding
wolf3d
raycast
raycasting
software
custom
shader