7 Replies - 1253 Views - Last Post: 20 November 2012 - 04:04 PM Rate Topic: -----

#1 TheGDeveloper  Icon User is offline

  • D.I.C Head

Reputation: 10
  • View blog
  • Posts: 93
  • Joined: 22-September 09

Tile map generator

Posted 18 November 2012 - 12:53 PM

Hi, i am making a tactical turn based strategy game for the android platform like UniWars, Battle for mars etc and i would like to add the feature to generate maps automatically. Are there any tutorials about this? Cause my algorithm for now do not produce so good results
Is This A Good Question/Topic? 0
  • +

Replies To: Tile map generator

#2 modi123_1  Icon User is offline

  • Suitor #2
  • member icon



Reputation: 9573
  • View blog
  • Posts: 36,255
  • Joined: 12-June 08

Re: Tile map generator

Posted 18 November 2012 - 12:58 PM

Read up on 'procedurally generated levels'. Basically you have rules that govern what tiles fit best to each other.. how much water.. how many resources.. where resources typically are.. etc.. a bit of work up front but pays off in the end.
Was This Post Helpful? 0
  • +
  • -

#3 TheGDeveloper  Icon User is offline

  • D.I.C Head

Reputation: 10
  • View blog
  • Posts: 93
  • Joined: 22-September 09

Re: Tile map generator

Posted 18 November 2012 - 01:28 PM

View Postmodi123_1, on 18 November 2012 - 12:58 PM, said:

Read up on 'procedurally generated levels'. Basically you have rules that govern what tiles fit best to each other.. how much water.. how many resources.. where resources typically are.. etc.. a bit of work up front but pays off in the end.

yes that is the idea but i would liek to know if there is a known algorithm based on fractals or somthing that produce beautifull fields etc because what i have invented sometimes generated weird results
Was This Post Helpful? 0
  • +
  • -

#4 modi123_1  Icon User is offline

  • Suitor #2
  • member icon



Reputation: 9573
  • View blog
  • Posts: 36,255
  • Joined: 12-June 08

Re: Tile map generator

Posted 18 November 2012 - 01:31 PM

No.. there's no "known algorithm" it is a pretty much custom bit regarding how your game operates and its world constraints.

The same sort of thing was tread in a post a few down from this one:
http://www.dreaminco...enerated-level/
Was This Post Helpful? 0
  • +
  • -

#5 TheGDeveloper  Icon User is offline

  • D.I.C Head

Reputation: 10
  • View blog
  • Posts: 93
  • Joined: 22-September 09

Re: Tile map generator

Posted 18 November 2012 - 02:12 PM

thank you, i will read this and if i will thing something generic i will post it
Was This Post Helpful? 0
  • +
  • -

#6 Leadwerks  Icon User is offline

  • New D.I.C Head

Reputation: 2
  • View blog
  • Posts: 9
  • Joined: 15-November 12

Re: Tile map generator

Posted 19 November 2012 - 06:37 PM

You should check out Perlin noise, it should work great for what you are trying to do.

My link
Was This Post Helpful? 1
  • +
  • -

#7 TheGDeveloper  Icon User is offline

  • D.I.C Head

Reputation: 10
  • View blog
  • Posts: 93
  • Joined: 22-September 09

Re: Tile map generator

Posted 20 November 2012 - 09:00 AM

thank you, this is great
Was This Post Helpful? 0
  • +
  • -

#8 Leadwerks  Icon User is offline

  • New D.I.C Head

Reputation: 2
  • View blog
  • Posts: 9
  • Joined: 15-November 12

Re: Tile map generator

Posted 20 November 2012 - 04:04 PM

You should post a picture once you get something working! Being a fan of Heroes of Might and Magic 3, I love seeing random maps.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1