|
|
|
|
|
Re: Big Maps Project[message #230857]
|
Wed, 12 August 2009 01:16
|
|
Maalstroom |
|
Messages:340
Registered:December 2008 Location: en route to San Hermanos |
|
|
well lakes are random generated all over the map but to obtain a big lake we have to restrict random generated numbers to certain intervals - a map is an array of at least 75 tiles in width and i don't know how many in length i havent counted them yet. so i have an array(length,width) - array(200,75) tiles now to get bigger lakes i have to generatte random lake position between lets say (22 to 35 ,10 to 17) - i'll get a final random lake shape at that position. further more i can specify how many lakes i want on that map and the percent of water on the map. after i've placed some lakes in random generated coodinates i'll have to fill the edges of the lake. if i have for example a river that is going to begin at the north edge of the map and is going to be split with one end at the east edge and one at the south i have to devide the map like a trigonomteric circle - with the following signs x+y+,x-y+,x-y-,x+y- so i can determine in which direction the river goes. another variable would be width of the river and also depth.
i consider the following steps to generate maps:
1. generate generic landscape - winter, desert, sunny beach - whatever that would be
2. get the percent of water on that map ant what type of water we want - lake, river
3. get number of roads (road tiles based on specific landscape) entry, exit points intersections between roads
4. detect points where roads cross water - draw bridges
now the basic terrain is set
5 as landscape vegetation the most powerfull element would be trees so i have to place them first - how many?
6 throw some stones
7 bushes
9 tall grass
sorry no buildings!
i consider in having a 3 dimensional array - some points should contain x,y coordinates, depth and power to affect surroundings - so we would generate points on the map that are affecting a wider area like stains.
and if we pass all this stages i'm thinking about connecting to multiplayer in a far far away future when i will really have time - generate a map - enemy soldiers/civilians/militia and mercs entry point and start a skirmish coop game! now i'm just typing stupid stuff in my lunch break.
Report message to a moderator
|
Master Sergeant
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: Big Maps Project[message #243264]
|
Thu, 04 February 2010 23:33
|
|
Jens |
|
Messages:12
Registered:August 2009 Location: Germany |
|
|
Hey guys.
one thing I always been thinking about is if it is (theoretically) possible to add levels. I mean the "hight" of buildings. with several levels the combat around buildings would be much more interesting.
guess it interferes with the sight of the characters?
thanks.
[Updated on: Thu, 04 February 2010 23:34] by Moderator Report message to a moderator
|
Private
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|