Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Algorithms for turing - mainly a map generator
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Kingnoz




PostPosted: 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.
Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: Thu Nov 06, 2003 11:21 pm   Post subject: (No 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.
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Mazer




PostPosted: Fri Nov 07, 2003 8:05 am   Post subject: (No subject)

lol Laughing
Dan




PostPosted: Fri Nov 07, 2003 5:28 pm   Post subject: (No 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
Computer Science Canada Help with programming in C, C++, Java, PHP, Ruby, Turing, VB and more!
Tony




PostPosted: Fri Nov 07, 2003 9:25 pm   Post subject: (No 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.
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Dan




PostPosted: Fri Nov 07, 2003 9:33 pm   Post subject: (No 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.
Computer Science Canada Help with programming in C, C++, Java, PHP, Ruby, Turing, VB and more!
Kingnoz




PostPosted: Sat Nov 08, 2003 12:30 am   Post subject: (No subject)

thanks for all the input, i'll play around with the ideas and see if i can come up with somethin
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 7 Posts ]
Jump to:   


Style:  
Search: