ok i'm begining to work on a simple game that basicly has the player flying down a matrix canyon dispatching baddies as he goes. The problem i've been having is generating a reasonable looking canyon, this is the code i have so far for the canyon generation, it doesn't work to well and i'm still having trouble geting it to generate a nice smooth canyon with some general roughness on the walls, any help would be appreciated.
rem make the canyon
rem offset the position of the matrix (will be changed later)
offset = 23
rem make the canyon as long as the matrix (50 tiles)
for n1 = 0 to 50
rem sx = start x, ex = end x
sx = rnd(4)
ex = 11 + rnd(4)
for n2 = sx to ex
rem set the matrix height
set matrix height 1,n2+offset,n1,get matrix height(1,n2+offset,n1) - ((ex - sx) - abs(n2 - (ex - sx)/2)) * 20
next n2
next n1
rem update the matrix
update matrix 1
Sparring - Loved by many, Pefected by few.
I'm going to live forever, or DIE IN THE ATTEMPT!!!"