ScratchData LogoScratchData
Back to rdococ's profile

Fast Map Generator

RDrdococ•Created April 27, 2018
Fast Map Generator
7
4
42 views
View on Scratch

Instructions

Move the sliders to change how the world generates, and press G to generate it. Press D to reset the sliders to their defaults. The 'delay' slider determines how long the computer should wait before generating the next layer. If the map generated doesn't seem to have enough forests or mountains, increase the delay slider. The 'spacing' slider determines how large the tiles in the map will be generated. Changing this during the generation of the map results in some weird effects. Grass, mountain and forest content seems to vary quite a bit per generation, but the sliders do have a noticeable effect. The map is first generated by randomly placing grass 'seed' cells that then grow randomly to neighboring empty cells. The mountains and forests use a similar system of their own 'seed' cells, but require land to appear on top of. Because I was lazy, the cells use color collision to determine what cells they're on, requiring each tile to have a specific 'color' that should be in the inside of the cells, but not the 2- Eventually I may add a 'land' tile which would be a yellowish or brownish color that grass would then spread on top of.

Project Details

Project ID219183883
CreatedApril 27, 2018
Last ModifiedApril 27, 2018
SharedApril 27, 2018
Visibilityvisible
CommentsAllowed