Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

random 2d landscape

Status
Not open for further replies.

curlyj

Programmer
Apr 8, 2001
10
0
0
GB
Hello!
I would like some help and advice...
im trying to generate random 2d landscapes - kinda worms style, but I just want a line that goes from the left of the screen to the right - I dont need extra bits of land floating on there own.
I wish I had some code to show you - every effort ive made looks very messy and consisted of lots of lines.

It seemed like a simple problem - and i was wrong!
I was told that I should try using cos and sin but im now more lost then ever!
and help would be great.
with thanx!
Curly ;-) QBasic is fun! Go see what I've done!
 
I'n not sure if this is what you want but, I saw this in a Mario knock off one time and it seemed to work.
First, draw the bits of land, one by one and then save each one into a file. (Using GET)
Then, randomly pick one of the strings and PUT it on the screen
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top