Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding trees #2

Open
alexose opened this issue Mar 28, 2020 · 2 comments
Open

Adding trees #2

alexose opened this issue Mar 28, 2020 · 2 comments

Comments

@alexose
Copy link

alexose commented Mar 28, 2020

Just wanted to start by saying thank you! This is an amazing project.

I'm attempting to implement trees. While I think I have a decent strategy in mind (draw sprites based on moisture, elevation, and aspect), I can tell I have a lot of learning to do before I'm able to contribute anything of use.

You had mentioned on your blog that trees were possibly on the horizon. Do you have any example code or ideas that I could learn from while I get up to speed?

@redblobgames
Copy link
Owner

Thanks! I'm not actively working on this project anymore :( but there are some nice posts on Scott Turner's blog:

  1. Forest areas
  2. Forests vs individual trees
  3. Different types of individual trees (you can see he spent all of April and May on this topic)

Given how mapgen4 works, my guess is that individual trees will be easier than a forest region, and you could draw one tree as a billboard sprite at each voronoi polygon.

@alexose
Copy link
Author

alexose commented Mar 29, 2020

These look like great great resources!

Makes sense to draw one tree per polygon. I was having trouble working out how to place them on the map-- That'll be a big help. Maybe I can do clusters of two or three trees if I need to increase density in places.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants