Use the arrow keys to move the prince, but once you rescue the princess, don't stop the program because there is a little mini animation at the end.
I got the platforms and the first backround from CSFirst.