i would look at the platformer template as a starting place.. your ball would be the character.. the real challenge (and its not too bad with a little effort) would be to have the platforms spawn randomly at the bottom and all have a behavior to move upward (because you're ball is going down).
Also look at the infinite jumper template which is kind of the opposite of your game, but the mechanics are very similar. that should help you understand how to move your pieces vertically.
If you can analyze those two template games i would imagine you could pieces together a game close to what you showed.
good luck!