The game you're thinking of is Katamari Damacy. In it, you control a sticky ball called a katamari that rolls up and collects anything smaller than itself, gradually growing larger as it scoops up everything from tiny objects to entire buildings.