ScratchData LogoScratchData
Back to Layzej's profile

Infinite Terrain Engine

LALayzej•Created July 6, 2014
Infinite Terrain Engine
70
51
1800 views
View on Scratch

Instructions

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/

Description

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/

Project Details

Project ID24410031
CreatedJuly 6, 2014
Last ModifiedJuly 12, 2014
SharedJuly 6, 2014
Visibilityvisible
CommentsAllowed