Making Terrain using CPRL

Started by Someone, October 12, 2013, 05:42:57 AM

Previous topic - Next topic

Lost in Nowhere

Quote from: J on October 19, 2013, 02:38:21 PM
Then change:

<-randY 2 add <-RandY 1 sub do
     <-randX 2 add <-randX 1 sub do
          I J <-terrlevel SetTerrain
     Loop
Loop
to:
<-RandX <-RandY <-terrlevel SetTerrain
<-RandX <-RandY 1 sub <-terrlevel SetTerrain
<-RandX <-RandY 1 add <-terrlevel SetTerrain
<-RandX 1 sub <-RandY <-terrlevel SetTerrain
<-RandX 1 sub <-RandY 1 sub <-terrlevel SetTerrain
<-RandX 1 sub <-RandY 1 add <-terrlevel SetTerrain
<-RandX 1 add <-RandY <-terrlevel SetTerrain
<-RandX 1 add <-RandY 1 sub <-terrlevel SetTerrain
<-RandX 1 add <-RandY 1 add <-terrlevel SetTerrain

No, change
<-randY 2 add <-RandY 1 sub do
     <-randX 2 add <-randX 1 sub do
          I J <-terrlevel SetTerrain
     Loop
Loop

to
<-randY 2 add <-randY 1 sub do
     <-randX 2 add <-randX 1 sub do
          I J <-terrlevel SetTerrain
     Loop
Loop

as randY is defined, but RandY isn't.
Don't die! :)

kwinse

Capitals will get you every time, hah.

Crimson King

Thanks everybody for the help with the code. I think I have it pretty close to what I am looking for it to do at this point.