[general algorithms] random map generating

Got questions? Got answers? Go here for both.

Moderator: MaxCoderz Staff

Post Reply
King Harold
Calc King
Posts: 1513
Joined: Sat 05 Aug, 2006 7:22 am

[general algorithms] random map generating

Post by King Harold »

I've read a lot about it, but most of it didn't seem to make much sense, and the "lot" wasn't that big (google didn't find many relevant things..)

if someone knows a good site/text I would be happy to hear it
User avatar
JoostinOnline
Regular Member
Posts: 133
Joined: Wed 11 Jul, 2007 10:42 pm
Location: Behind You

Post by JoostinOnline »

You should find this guide very helpful.
"Macs are the Perfect Computers", said the Perfect Idiot.
Image
Testing for:
Vera
King Harold
Calc King
Posts: 1513
Joined: Sat 05 Aug, 2006 7:22 am

Post by King Harold »

Where does it say anything about generating random maps?
User avatar
driesguldolf
Extreme Poster
Posts: 395
Joined: Thu 17 May, 2007 4:49 pm
Location: $4080
Contact:

Post by driesguldolf »

I once put my mind on that, this is how I would handle it:
I'd use prestored bits of map data and 'merge' them together
You could decide a 'main theme' and have multiple map bits in multiple categories (stuff from the same category won't match together but from different categories they would all match)
So say you have these categories:
  • North border (3 map bits)
  • East border (4 map bits)
  • South border (2 map bits)
  • West border (5 map bits)
  • Middle part (3 map bits)
Just choose random stuff from each category and merge them

though... maybe I'll just try some googleling... :mrgreen:

EDIT:
Tried "random map generation" :P
King Harold
Calc King
Posts: 1513
Joined: Sat 05 Aug, 2006 7:22 am

Post by King Harold »

Google wasn't very cooperative, most links were crap

note: it's about RTS maps

Anyway, if I get you right, you're suggesting this:
Have some data describing some map elements, then stick a few onto the map

ok, well, I would add a few things to that:
Some terrain analyzing to make sure resources etc are properly spread (neither too far apart nor too close together) and that you can move from most areas into most others (it wouldn't do to completely separate a group of players from an other).

How about calculating some influence maps for resources when the map is generated? The AI will need them anyway, and they sound like a good way to balance resources across the map - reject the map if it is too unbalanced (huge concentrations in a few places etc)

Of course I could be terribly wrong..

edit: So far the best things I've read were:
http://www.cs.unimaas.nl/m.ponsen/downl ... an_map.ppt
http://www.gamasutra.com/features/gdcar ... tinger.doc
User avatar
Halifax
Sir Posts-A-Lot
Posts: 225
Joined: Mon 01 Jan, 2007 10:39 am
Location: Pennsylvania, US

Post by Halifax »

King Harold: If you are looking for articles on every aspect of game development, and possibly RTSes, for PCs or whatever, then check out

gamedev.net and devmaster.net
King Harold
Calc King
Posts: 1513
Joined: Sat 05 Aug, 2006 7:22 am

Post by King Harold »

I know gamedev, thanks for devmaster :)
It sort of annoyed me how many of gamedev's articles are actually on gamasutra, so I joined that now..
User avatar
Halifax
Sir Posts-A-Lot
Posts: 225
Joined: Mon 01 Jan, 2007 10:39 am
Location: Pennsylvania, US

Post by Halifax »

lol yes that annoyed me also

I haven't registered yet mainly because it annoys the hell out of me
Post Reply