Caves Generation that ANYONE can do! (Cellular automata caves in P5js)
Автор: Barney Codes
Загружено: 2023-03-04
Просмотров: 4840
Rogue Basin Article: http://www.roguebasin.com/index.php/C...
Code from video: https://editor.p5js.org/BarneyCodes/s...
Procedural Terrain Generation can sound incredible daunting and the scary name can put you off, but I promise that anyone can make these caves! This method uses cellular automata to turn random noise into lovely looking caves in an incredibly satisfying way.
The caves we generate in this video could easily be used for some great levels in a game, and we even show you how to turn the raw tile data into really great looking levels using textures.
Enjoy!
Follow me:
Support the channel: https://www.youtube.com/@BarneyCodes/...
Twitter: / barneycodes
Reddit: / barneycodes
Chapters:
0:00 How it works
2:12 Generating random tiles
5:39 Counting wall neighbours
7:28 Next generation of tiles
9:27 Values outside the grid
10:29 Notes about the article
11:13 Loading textures
13:19 Converting to tile IDs
15:31 Adding floor variations
16:58 Wall variations
18:45 A note on bit masking
19:18 Final Product
#creativecoding #p5js #javascript
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: