Wait in-between button presses! If you press this button on your keyboard: 1 = Run Terrain Generation V1 2 = Run Terrain Generation V2 3 = Run Terrain Generation V3 4 = Run Terrain Generation V4 5 = Run Terrain Generation V5 6 = Run Terrain Generation V6 7 = Run Terrain Generation V7 8 = Run Terrain Generation V8 When the green flag is clicked it runs the latest terrain generation and that semi-randomly picks from 3 different types of terrain tiles and the chosen tile is appended to the list. Then the list is read item by item and each number on the list corresponds to a tile which is then cloned onto the screen.
This is just a test for an upcoming scratch project idea I have. I have many things I wanna add/change about the generation so this project will get updated. (Also this code is probably in no way efficient) Update Log: 3/3/2022: Added in water generation Changed Tile Generation Chance 2/22/2022: Modified Sprites Changed Grid Size Removed Ground Tile 2/11/2022: Added tile choices being influenced in different ways 2/10/2022: -Added tile choices being influenced by the tile above it -Added tile Choices being influenced by the tile below it -Added tile Choices being influenced by the tile after it 2/9/2022: -Changed semi-random tile system so it is now more expandable and easy to use 2/8/2022: -Added Ground, Copper and Iron tiles -Added tile choices being influenced by the tile before it Made 100% by me