Here's some terrain generation for you guys! Green is land, blue is water.
Here's how I did it:
- Randomly assign each value in a grid to be either water or grass
- Count how many land tiles surround each tile
- If it's more than four, then turn it to land
- Repeat step 3 about 8 times
- That's it!
It's not the best, and there are way better algorithms than this, but this is meant to be a quick way of doing so. I also made this in about an hour, so it may not be too good...
Too bad your moving away from this for a bit? How did you make the square grid thingies?
@Highwayman yeah, I really want to keep making cool stuff in the console like this, but I'm busy with other stuff. I'm working on creating a language, and when I'm done with that, I'm moving away from C++ and learning Unity, so this is probably my last console thing for a while...
also I used this: ■
Next: DynamicSquid, makes terrain generator and makes a player that can be moved by
W, A, S, D. (Just an idea).