evolvio4all / evolvio4JavaScript

MIT License
10 stars 2 forks source link

Improved map generation with perlin noise #15

Closed winnie334 closed 6 years ago

winnie334 commented 6 years ago

Hi there!

When I forked this repository I was planning to do one of the TODO's. However, it kinda bothered me that the map felt so... "off". It was just a random mix of land and water. That is why I implemented this new perlin noise, which generates a more "realistic" map. While it wasn't on the todo list, I hope it is still of any use! There are some parameters in the config file as well which you can use to fine-tune the map generation (I suggest you to play a bit with it, so you can choose the default values you want).

Example of a new map: image

Also, as you can see, some of the creatures spawn in the ocean. Perhaps you can let them spawn only on land, or spawn children next to their parents -- I'll leave that choice to you.

Thanks for making this repo, it is fun playing with it!

Air1N commented 6 years ago

Love it, the creatures are each randomly spawned. The children actually do spawn on top of their parents. I will work on the spawn positions though