Going back to generating a sort of flat plane makes things so much easier, I have it flatten the world then grow now, so what your seeing is:
Generate a flat plane with seeds,
If there's air on top of seeds, replace seeds with roots and place a plant on top.
If there's a plant on top make a tree.
Everything is percent. So like a 40% of growing, to get a variety.
The good thing about this is if I don't want to generate hills I can take out 1 line of code, same with growing. So I could have different plants, generate this on their own, if 1 then generate hills for this planet, if 0 then don't.
Simple and easy.
No comments:
Post a Comment