Computer Science Canada

Algorithms for turing - mainly a map generator

Author:  Kingnoz [ Thu Nov 06, 2003 11:17 pm ]
Post subject:  Algorithms for turing - mainly a map generator

does anybody know of any good algorithms for making a proper map such as the ones in civilization are like?

for example, the game would randomly make a map with special tiles that provide better resources, water, grasslands etc.

Author:  Tony [ Thu Nov 06, 2003 11:21 pm ]
Post subject: 

"I've read fractals can be used for this type of thing."

Posted Image, might have been reduced in size. Click Image to view fullscreen.

Author:  Mazer [ Fri Nov 07, 2003 8:05 am ]
Post subject: 

lol Laughing

Author:  Dan [ Fri Nov 07, 2003 5:28 pm ]
Post subject: 

well the simple way to do it whould be to use a title system and insted of reading in the maps form a file make it genrate the maps using a smart fouraml.

i used to have a good map making porgam for turning but it was big b/c it had tones of titles in it. when i get up some of the new compsci.ca servers i will upload it.

bascily a tile system invales diveding the screen up in to boxs where you will place a small picher(title) like grass. now since you know the loaction of all the tiles and the player and type of tile you can easy use it to make rules for the game like you cant wlak on walls and stuff. also the tile system ushley reades a file of numbers wich each repsent a type of title or picher. you problem whont to rnadomize this a bit which could be done easy enoght with nested loops.

p.s. sory about the spelling and the lack of sencen in this one Rolling Eyes

Author:  Tony [ Fri Nov 07, 2003 9:25 pm ]
Post subject: 

dan - the issue here is to generate good random maps, not load them from a file Rolling Eyes

The thing is - by just using Rand, you'll get a checkerboard of islands... I would need to think about how to create realistic maps... Perhaps you start off with statis continents that get modified randomly? Like move location, shrink/expand, twist, etc... see what you can come up with.

Author:  Dan [ Fri Nov 07, 2003 9:33 pm ]
Post subject: 

well if you read ALL of my post you whouldsee i side you whould have to randomy genreate this file by means of a smart fouraml. so you whould need some ifs and stuff to make it so you can acuahly walk inbetwen titles and stuff. may be there is a way to uses fractals and title system together, that whould be cool. oh well it is just an idea.

Author:  Kingnoz [ Sat Nov 08, 2003 12:30 am ]
Post subject: 

thanks for all the input, i'll play around with the ideas and see if i can come up with somethin


: