Re: The Euphoria Sub Commander project
- Posted by Bernie Ryan <xotron at bl?ef?og.com> Nov 20, 2007
- 574 views
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: http://www.rapideuphoria.com/cgi-bin/asearch.exu?dos=on&win=on&lnx=on&gen=on&keywords=bernie+ryan