User Tag List

Results 1 to 5 of 5

Thread: Roguelike Maps?

  1. #1
    Clicker Multimedia Fusion 2

    Join Date
    Mar 2009
    Location
    Australia
    Posts
    254
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Roguelike Maps?

    Hi

    I was wondering if anyone knows How I'd go about generating random Maps like in Rogue or Pokemon Mystery Dungeon? Any help would be greatly appreciated. Thanks

  2. #2
    No Products Registered

    Join Date
    Mar 2007
    Location
    Sydney, Australia
    Posts
    1,369
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Roguelike Maps?

    Google 'perlin noise' to generate a height map. Then you need to come up with some events which convert the height map to objects etc.
    This is just one way of doing it. You will need to get yourself a working algorithm (I use LUA for this and simply pass values into MMF2 when needed) and then tweak values and add more functions once you get that working.

  3. #3
    No Products Registered

    Join Date
    Jun 2006
    Location
    Land of raging rockets
    Posts
    1,231
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Roguelike Maps?

    The common approach is to take a 2d array for your map, then "dig out" rooms and hallways.

    Define a starting point, then

    - connect either a hallway of random length or a room of random size.
    - if the dungeon is smaller than the desired final size, take the boundary fields of either, and insert a random amount of doors
    - repeat the process for every door

    - when done, add stairs down at random positions, and all the other objects you want to have.

    That actually programming an algorithm like this is 100 times easier in scripting/programming than in MMF should be obvious.

  4. #4
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export ModuleUnicode Add-on

    Join Date
    Jun 2006
    Location
    Australia
    Posts
    988
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Roguelike Maps?

    You might also want to look into the Pathfinding Object with its Generate maze function.

  5. #5
    No Products Registered

    Join Date
    Mar 2007
    Location
    Sydney, Australia
    Posts
    1,369
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Roguelike Maps?

    Quote Originally Posted by Random
    That actually programming an algorithm like this is 100 times easier in scripting/programming than in MMF should be obvious.
    Thats why I use LUA, its much faster and so much tidier than fastlooping

Similar Threads

  1. Easiest way to make a 'roguelike' field of vision?
    By Phanto in forum Multimedia Fusion 2 - Technical Support
    Replies: 11
    Last Post: 10th October 2015, 01:44 PM
  2. Displacement Maps?
    By Kid_Roleplay in forum Hardware Accelerated Runtime
    Replies: 2
    Last Post: 19th October 2011, 09:57 AM
  3. File Object - Create Maps in maps?
    By DJ_Wild in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 15th August 2011, 10:17 AM
  4. Roguelike room generation system?
    By Oreo in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 30th August 2010, 02:00 PM
  5. The Roguelike Thread
    By BAugustus in forum Multimedia Fusion 2 - Technical Support
    Replies: 14
    Last Post: 24th July 2010, 12:17 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •