I made this yesterday and it is fully tested and it works 100%. try it out.

use the Left and Right arrow keys to move and press space to jump over the green blocks. If they hit you you lose and when you get the big food peice the green blocks disapear