top of page

Week 12 - Tree Generation and more models

I built up the crystal model and the mining tool model this week. I try to make it as simple as it could.

Screenshot (27).png
Screenshot (28).png

Moreover, I tried to spawn the tree models randomly in the game scene.

First, I use a simple while function to test if there aren't any objects on the target spawn region. Until it gives a result that there are places available, it will Instantiate the object on that spot.

And now, 40 trees will be spawned when the game is started without overlapping with other game object.

​

Screenshot (29).png
Screenshot (29).png
bottom of page