Help with spawning ground

hello. I would like to spawn ground like in the game Zig-Zag. I want to spawn i random direction and position but still attached to eachother so it makes a path/road for a ball/player can run on.

Anyone who can help or have any advice?

Sorry for my bad english, im a Swede :slight_smile:

Are you asking for procedural level/terrain/dungeon generator? You could read about it here Reddit - Dive into anything