you can press the space bar or the arrow to jump over rocks. The "speed" variable indicates the rocks heading speed. The rock goes faster every time your score hits 10, 20, 30, 40, and so on.
I made this game myself :)