hi!! since im going to need a terrain generator in the future, i thought i might as well start on one today (it runs a lot faster on turbowarp btw: https://turbowarp.org/1016416255) the only thing you really do is watch the world generate, but ill go into more depth about how it happens: it starts off with randomizing each tile on the screen, and then it converts each tile to either land or water based on the tiles around it. for example, if the tile is bordering 3 water tiles and 1 land tile, it's more likely to switch to a water tile. overall though there is a pretty big bias towards land. while it does this, it does generate an ocean somewhere. after its done, it cleans up by removing a lot of disconnected water/land tiles such as 1x1 or 1x2 areas and leaving behind just a few lakes/islands instead of a ton. then it adds random biomes everywhere and finishes by converting costal/river tiles to sand/shallow water
yuh