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
Are you asking for procedural level/terrain/dungeon generator? You could read about it here http://www.reddit.com/r/gamedev/comments/1dlwc4/procedural_dungeon_generation_algorithm_explained/