ScratchData LogoScratchData
Back to Splodgey's profile

Scrolling Terrain generator

SPSplodgey•Created April 13, 2012
Scrolling Terrain generator
6
1
500 views
View on Scratch

Description

This is NOT a game. Use Turbo Mode Note: It is a little buggy and sometimes loads towers of dirt in the sky. I am working on this. I'm not entirely sure why it is caused... This is an infinite Scrolling (x axis only) random terrain generator that I made for LOLIPOP1136. Controlls: Left Arrow = scroll to the left Right Arrow = scroll right A = scroll 1 block left D = scroll 1 block right SPACE = Reset scrollx to 0 R = round scrollx to the nearest block The more "updating" sprites there are, the faster it will update. (I think 4-8 should be enough - I might update this doing that...) How this works, is there are 2 lists, 1 for the positive world (all the world with an x>0) and the negative world (which includes 0) When it generates, it stamps and saves the costume to a list. It will save more than what is just on the screen. When you scroll, as well as updating the world, it checks if the world 464 pixels to the left and right is saved. If not, it generates more. This could get quite complex when adding features and biomes. Changelog: v2: *Fixed some tower loading bugs KNOWN BUGS: *All blocks with and x of 16 sometimes mess up *I messed up the direction... left arrow goes right, right goes left. *On the far right it is often too high *There seems to be the far lands... :(

Project Details

Project ID2467545
CreatedApril 13, 2012
Last ModifiedApril 13, 2012
SharedApril 13, 2012
Visibilityvisible
CommentsAllowed