wasd to Space to place blocks Click the flag twice
I used part of funut's random terrain generator and a part of the code from griffpatch's scrolling platformer tutorial and modified both of those to work togeather.