Own project from iPad Playgrounds example

You can play around with the examples like Sensor arcade.

But where is the function for the mushrooms popup?

How can I create my similar project?