Press the space bar to go up. Don't touch the line. Collect diamonds. YAY! Please don't be mad at me if it starts going crazy. I'm still improving it. Oh, and by the way, there's no way of winning. You end up dying no matter what. And please love if you like the game.
I shall give all credit (or most of it) to the "CoderDojo" program. Though a little bit (or a lot) of creativity was added by me.