Use space to jump. Avoid the rocks and get the yellow thingies for as long as possible. When lives are 0, you lose.
Thanks to Subway Surfer for inspiration.