horrelltech.itch.io/basic-terraria-world-generation
A good base for anyone wanting to build a game like terraria. Has a very simple map generation system, commented code, functions to keep everything tidy.
You will be amazed at how simple yet effective this is. It comes with a basic move to character, tap or click anywhere to move the player to that position.
You will also find basic algorithms for generating a circle of blocks, a vein of a block for minerals, trees and foreground and background tiles.
Would be a good learning tool for anyone interested in how world generation works!