Skip to main content
GameDev.net gamedev.net

PRO Tired of ads? Read GameDev.net ad-free and help keep the community independent with GameDev Pro — $3/month.

Tree generator

Tree generator

RomanGenkhel
RomanGenkhel
OnlineCraft · · 1 min read
905 4

I managed to make description and tools for Tree-like generator, based on algorithm similar to “A*”.
How it works, you can figure out from screenshot (below). Actually each named block has some probability of generating adjacent block (in up to 6 directions), that`s almost all.
First trees already integrated in Online Craft (as usual http://stilker.sknt.ru:3001). Need some optimization, but algorithm is applicable in general, not only for trees, but for wide range
of “growing” structures, for example, “stages” could be invisible, which allow generate hollow objects.

BTW: basic skeleton for visual part of editor tool (HTML) i generated with AI, which works well for simple widely used patterns (still need too check/optimize fix bugs e.t.c)










Discussion

Loading comments...