Creates an infinitely scrollable random looking (but not random) terrain. RIGHT/LEFT arrows to scroll right and left. You should be able to scroll forever without seeing the terrain repeat. SPACE to show/hide the variables. Here is an example where it has been turned into a game: http://scratch.mit.edu/projects/24451694/ Here is a 3D version of the engine: http://scratch.mit.edu/projects/24545366/
The terrain is built from four sine waves. You can change the amplitude, frequency, and offset of each of the four waves to get a different looking terrain. If you want to see only one sine wave set the amplitude of the other waves to 0. Here is an example of the engine in use: http://scratch.mit.edu/projects/24451694/ Inspired by the @MathWizz project 2D Infinite World http://scratch.mit.edu/projects/11937638/