www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/01/25/06:02:18

From: "Tom Cook" <tcook AT nexus DOT edu DOT au>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Random Map Generator (off topic)
Date: Sun, 25 Jan 1998 19:53:58 +0930
Organization: Nexus Information Service
Lines: 20
Message-ID: <6af473$cou@nexus.nexus.edu.au>
References: <Pine DOT GSO DOT 3 DOT 96 DOT 980119204646 DOT 12426B-100000 AT bert DOT eecs DOT uic DOT edu>
NNTP-Posting-Host: nexus.nexus.edu.au
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Andrew Deren wrote in message ...
>Does anyone know where to find some tutorials or sample code on how to
>generate random maps with varying conditions (heights, whether etc).
>Thanks in advance.


Check out the Genesis03 thingy at David Jenkins home page
http://www.jenkinsdavid.demon.co.uk ). This will generate a 3D map, it
could be done multiple times to generate different properties of each point.
It is fairly simple. For each point in a 2D rectangle, you add the heights
of the eight surrounding points and divide by about 7, depending on how flat
you want it. You can check it out at the link above, anyway.

HTH!

Tom Cook




- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019