Re: The Euphoria Sub Commander project
- Posted by ChrisBurch2 <crylex at fre?uk.co.?k> Nov 20, 2007
- 567 views
Bernie Ryan wrote: > > c.k.lester wrote: > > > > ChrisBurch3 wrote: > > > > > > I need a map generating routine, that generates a random map, with > > > coastline > > > and sea bed depths. > > > > You could make each point in the grid represents the relative sea level, > > so for land it can go as high as 20' above sea level (20) and for water > > it can go as low as 600' below sea level (-600). That way you have one > > value giving you land or sea. Thermocline values would not need to be > > set in the grid. It could just be something like {-100,-50} to represent > > the lower and upper boundaries of the layer. > > > Why don't you assign different colors to +20 to 0 would be brown and > > 0 to 10 would be light brown and etc. Then when you draw a map you > > could just display a color as you scan each cell in a given area. > > Bernie > > My files in archive: > WMOTOR, XMOTOR, W32ENGIN, MIXEDLIB, EU_ENGIN, WIN32ERU, WIN32API > > Can be downloaded here: > <a > href="http://www.rapideuphoria.com/cgi-bin/asearch.exu?dos=on&win=on&lnx=on&gen=on&keywords=bernie+ryan">http://www.rapideuphoria.com/cgi-bin/asearch.exu?dos=on&win=on&lnx=on&gen=on&keywords=bernie+ryan</a> gotta luv this forum! Chris