My Pixel Art Tree Generator


This is a new project I've been working on to create pixel art trees procedurally so that I don't have to have any artistic skills. Tbh I feel like it turned out really well (that's the whole reason I'm posting it on here).

Anyways, how does it work? I took inspiration from the binary tree data structure because... well... tree. Then i made it visual by making circles for each node, and connecting them to the parent node via a straight line. Then I made each node remember an angle that it would be positioned by from its parent. Then the cool part, I made it so the lengths can get longer and the nodes can also get children. Then I made it so that the width of the line was dependent o how many child nodes a node had, which made the trunk of the tree much wider than the branches. For the leaves I made it so each Node also has leaves but as it gets more children (as the tree grows) that node will eventually lose its leaves so that the leaves stay at the tops of the tree. Then you simply increment the growth of the tree which will create new child nodes or make certain branches longer and viola, trree.

Anyways this is my first itch.io project so I hope you like it, please comment with what you think about it and any feedback to make it better.

Thanks!

Files

ProceduralTrees.zip 17 MB
99 days ago

Get Procedural Pixel Art Tree Generator

Leave a comment

Log in with itch.io to leave a comment.