This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2011-05-26 02:34:02

Cameocool999
Scratcher
Registered: 2010-09-17
Posts: 38

(W.I.P) Random terrain generator

Hello guys. I am currently working on a random terrain generator that generates a realistic 2d map similar to minecraft. Strangely, i seem to be getting this flaw where the terrain generates very weirdly (Couldn't put image in because apparently i am a new scratcher (Been on scratch for almost a year)  hmm . So heres the link instead: http://i1230.photobucket.com/albums/ee487/epicpineapplepie/Screenshot2011-05-26at61720PM.png?t=1306390952)
As soon as i fix the problem i will release version 1.0.

Currently it only has 3 blocks: Stone, dirt, and grass (Mostly stone, then 4 blocks of dirt, then 1 block of grass. I plan on adding more in the future.

Should be released soon.

-Cameocool999

Offline

 

#2 2011-05-26 02:40:04

Cameocool999
Scratcher
Registered: 2010-09-17
Posts: 38

Re: (W.I.P) Random terrain generator

Ok, i changed around some of the algorithm and it seems to of mostly solved the problem. I won't release it until i fix it though. I'm not giving up.

Offline

 

#3 2011-05-26 06:45:37

-GizzardGulp-
Scratcher
Registered: 2010-03-05
Posts: 100+

Re: (W.I.P) Random terrain generator

make it so that the height of one of the ones next to another cannot be higher or lower than the number of units you can jump


http://i1118.photobucket.com/albums/k607/Max_Levine/SnoutmolStudios.png

Offline

 

#4 2011-05-27 04:39:19

Cameocool999
Scratcher
Registered: 2010-09-17
Posts: 38

Re: (W.I.P) Random terrain generator

Ok, the problem has been fixed! Yes, it does generate each collumn based on the height if the previous one. It includes flatness and curve variables to generate flat areas, then mountains and infinite combinations. I will release the first version tomorrow.

Offline

 

#5 2011-05-27 19:15:29

Cameocool999
Scratcher
Registered: 2010-09-17
Posts: 38

Re: (W.I.P) Random terrain generator

Its out now!
http://scratch.mit.edu/projects/Cameocool999/1817462

Offline

 

#6 2011-05-27 20:28:09

-GizzardGulp-
Scratcher
Registered: 2010-03-05
Posts: 100+

Re: (W.I.P) Random terrain generator

cool, can't wait to see it! here's a clickable link:
http://scratch.mit.edu/projects/Cameocool999/1817462


http://i1118.photobucket.com/albums/k607/Max_Levine/SnoutmolStudios.png

Offline

 

#7 2011-05-27 22:04:04

Cameocool999
Scratcher
Registered: 2010-09-17
Posts: 38

Re: (W.I.P) Random terrain generator

-GizzardGulp- wrote:

cool, can't wait to see it! here's a clickable link:
http://scratch.mit.edu/projects/Cameocool999/1817462

Thanks.

Coming in version 1.1
-Sand
-Generation tweaks
-Customizable generation!

Probably coming in version 1.2
-Water
-More generation tweaks
-Trees

By the way, this is not going to be a complete copy of Minecraft or Terraria.

Offline

 

#8 2011-05-27 23:21:21

Cameocool999
Scratcher
Registered: 2010-09-17
Posts: 38

Re: (W.I.P) Random terrain generator

Version 1.1 is out!
DO NOT CLICK THE LINK A FEW POSTS ABOVE IT WILL NOT WORK!
Click this one instead:
http://scratch.mit.edu/projects/Cameocool999/1817839

New in version 1.1
-Sand
-Snow
-Generation tweaks.

TIP: Use turbo mode (Shift click the green flag) and the map will generate in less than a second (As apposed to a few minutes)!!!!!

Offline

 

#9 2011-05-27 23:35:50

Cameocool999
Scratcher
Registered: 2010-09-17
Posts: 38

Re: (W.I.P) Random terrain generator

I have found 2 bugs. The first one which i call the "Snowy staircase" makes downwrds slanting snow staircases one after the other which look very ugly and unnatural. The second one which i call the OTT allows the generation to go off the top of the screen rarely. Both of these will be fixed in 1.2

Offline

 

#10 2011-05-28 01:24:55

Cameocool999
Scratcher
Registered: 2010-09-17
Posts: 38

Re: (W.I.P) Random terrain generator

Argh. This 'New Scratcher' thing is driving me crazy. Not being able to edit my first post is really buggin me.
I don't want to be pecky or anything but can anyone please upgrade me to scratcher? It would make life so much easier.

P.S. Just as i click submit the thingy pops up saying i have to wait 360 seconds. When will this end?

Offline

 

#11 2011-05-28 05:22:12

Cameocool999
Scratcher
Registered: 2010-09-17
Posts: 38

Re: (W.I.P) Random terrain generator

The To-Do list is out! If you want to know what is on the dev list, look here:
https://docs.google.com/document/d/1l4w3Hsc669XpndF9j4BsWLb8_Ecy6zHkyCBbErXd2C4/edit?hl=en_US&authkey=CKCp5_AC#

I have also released my Scratch blog which will contain many updates about my projects (Including this one):
http://scratchwithpineapples.tumblr.com/

Offline

 

#12 2011-05-28 07:51:10

-GizzardGulp-
Scratcher
Registered: 2010-03-05
Posts: 100+

Re: (W.I.P) Random terrain generator

glitch:
http://i1118.photobucket.com/albums/k607/Max_Levine/Screenshot2011-05-28at74926AM.png


http://i1118.photobucket.com/albums/k607/Max_Levine/SnoutmolStudios.png

Offline

 

#13 2011-05-28 16:39:34

Cameocool999
Scratcher
Registered: 2010-09-17
Posts: 38

Re: (W.I.P) Random terrain generator

-GizzardGulp- wrote:

glitch:
http://i1118.photobucket.com/albums/k607/Max_Levine/Screenshot2011-05-28at74926AM.png

I know about that one. It will be fixed in the next update (Which should be out today).

Offline

 

#14 2011-05-28 17:01:18

Cameocool999
Scratcher
Registered: 2010-09-17
Posts: 38

Re: (W.I.P) Random terrain generator

Version 1.1_1
-Fixed "Snow staircase" glitch (Look in image above)
-Fixed map generating too high (Look in image above)
-Few generation tweaks

Offline

 

#15 2011-05-29 03:29:32

Cameocool999
Scratcher
Registered: 2010-09-17
Posts: 38

Re: (W.I.P) Random terrain generator

Version 1.2
-Added customizable generation
-Added in a (Sort of) mainmenu
-Added the option to generate another world

Also, if you have hilliness set to maximum, don't complain about your map going to high.  smile

Offline

 

#16 2011-06-06 16:16:38

theham
Scratcher
Registered: 2009-12-06
Posts: 2

Re: (W.I.P) Random terrain generator

is there a newer version?

Offline

 

Board footer