I think that, on the layer with the ground, there are sprites with the erase effect that will erase what's on that layer, and then there's a sky background on the layer underneath that. I can't remember if it's done exactly like that, but it's similar.
EDIT: I whipped up an example demonstrating this effect real quick: Erase Example
Hope this helps.