ScratchData LogoScratchData
Back to olls's profile

terrain generator

OLolls•Created January 4, 2013
terrain generator
2
1
152 views
View on Scratch

Description

Another project made with grit96 ( scratch.mit.edu/users/grit96 ). This takes a LONG time, even in terbo, to generate offline, but is fine in the flash player. It makes a very nice smooth terrain. First it generates a random y coord for all the x, then for each it takes it's y and the next 10 ys and finds the mean. Then it replaces the first of the 10 ys with the mean, and then moves to the next y and does it again. It goes through all the y's, then it does it all again, 10 times :D It could probably be sped up a lot, but we didn't bother, as we were building this on a laggy raspberry pi, with a tiny keyboard and trackpad, on a tiny bury screen, with power issues :D Hardcore scratching! The terrain engine is not practical for a game, as it takes so long, but with some optimisation, it could become usable. The physics engine, is also basic and , not particularly good, but it does use the list coords for the ground instead of sensing, so it is a bit more accurate.

Project Details

Project ID3018973
CreatedJanuary 4, 2013
Last ModifiedJanuary 4, 2014
SharedJanuary 4, 2013
Visibilityvisible
CommentsAllowed