Algorithms for turing - mainly a map generator
Author |
Message |
Kingnoz
|
Posted: 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
|
|
|
Tony
|
|
|
|
|
Mazer
|
Posted: Fri Nov 07, 2003 8:05 am Post subject: (No subject) |
|
|
lol |
|
|
|
|
|
Dan
|
Posted: 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 |
Computer Science Canada
Help with programming in C, C++, Java, PHP, Ruby, Turing, VB and more! |
|
|
|
|
Tony
|
Posted: 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
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. |
Tony's programming blog. DWITE - a programming contest. |
|
|
|
|
Dan
|
Posted: 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
|
Posted: 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 |
|
|
|
|
|
|
|