(Note - This isn't a game, this is just an engine to generate terrain.) This generator can generate many types of landscapes with even more different features and structures. Just click the flag and it will create a new world with grass, trees, and sometimes even weather! There are structures to find as well, with one of them being particularily rare, as it only generates on perfectly flat terrain. The way the terrain works and looks is loosely based on terraria and other 2D side-scrollers. (Even though this generator doesn't scroll it kinda looks like it would.) If you are interested in how it generates then I will now explain: -Every terrain block is a clone which is spawned by an actual sprite. Once it starts it will keep going right, but each time it goes right theres a 20% chance that it will go up or down. Then after all the grass has generated each grass block will start summoning dirt clones that go downwards and then make duplicates of themselves until it's all filled in. -Then the structures and trees will spawn! Please note that whenever the terrain goes up OR down, the "Erosion" value will increase. The higher the erosion, the less likely for a structure to spawn. And village mines can only spawn with an erosion value of 0. That's about it. Sometimes the terrain will glitch out or the structures will spawn in the sky though! But that's just one of the side effects of completely random generation. (But if you find a really obvious and gamebreaking glitch then please say so in the comments so I can fix it.) Hi! Have you found a village mine yet? No? Ok, here are some secret codes that will help you... If you hold "SPACE" while pressing the flag it will generate a perfect flat of terrain, which will spawn a guarenteed village mine! If you hold "E" while pressing the flag it will generate a very bumpy world where no structures and very few trees can spawn! There are no special structures for bumpy terrain, but I added it just for fun so whatever.
-All the code in this project is by me. -All the art in this project is by me as well. -The idea for this terrain was kind of based on terraria, but I already said that.