This platform game generates platforms continually to the left or right depending on the facing of the dinosaur. Potentially you could keep playing forever! The second version of this game is now available on my profile page and is less buggy with a bit more gameplay.
There are some notes on the code when you 'see inside' if you want to try something similar.