Free Level selector/Map level selector - like candy crush

Does anybody know of any sample code or tutorial which can teach me how to create a level selector in the form of a map, like in the candy crush game? Would really appreciate it if anybody can give me help regarding creating such a kind of level selection screen.