User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 16

Thread: Random dungeon generator

  1. #1
    Clicker Fusion 2.5 DeveloperiOS Export ModuleSWF Export Module
    Yima's Avatar
    Join Date
    Feb 2008
    Location
    Sweden
    Posts
    103
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Random dungeon generator

    random dungeon.jpg
    I just finished a random dungeon generator. It produces an array containing the X and Y coordinates, the tile type (path, wall, start or end) and tile graphic information of the dungeon.

    The random dungeon generation is quite easy. It walks from a starting position until a predetermined number of tiles have been placed and a minimum distance from the starting position has been reached

    The tile graphic part is solved by using prime numbers to create unique ID:s for different tile combinations. I did this in a separate editor, which is also included in the example.

    It might not be the most intuitive example ever (far from, I guess), but I hope it's useful nonetheless!

    The example can be found here: http://www.declared.se/?p=84

  2. #2
    Forum Moderator

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    nivram's Avatar
    Join Date
    Jul 2006
    Location
    Bandon, Oregon
    Posts
    6,782
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)
    Looks great. Just downloaded this so I can drool on my feet.

    Marv

  3. #3
    Clicker Fusion 2.5 DeveloperiOS Export ModuleSWF Export Module
    Yima's Avatar
    Join Date
    Feb 2008
    Location
    Sweden
    Posts
    103
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks! Just tell me if you have any questions

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleSWF Export ModuleUnicode Add-on
    Pharanygitis's Avatar
    Join Date
    Aug 2006
    Location
    Germany
    Posts
    1,037
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    great example ! good work Yima!

  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export Module
    BiznessMan's Avatar
    Join Date
    Apr 2007
    Location
    Sandy UT
    Posts
    105
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Is there anyway to get a SEED number after generation?
    The dungeon generator extension let you put in a seed. This would let you travel between dungeon rooms more easily I think since you could store the values

  6. #6
    Clicker Fusion 2.5 DeveloperiOS Export ModuleSWF Export Module
    Yima's Avatar
    Join Date
    Feb 2008
    Location
    Sweden
    Posts
    103
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That would be practical. For now, it's certainly possible to save the dungeon layout to a file (that is the main point of the generator), but I guess you are looking after something like the seed in Minecraft or Cubeworld, where you can enter a seed that controls the "randomization". For now I have no idea how to do that, but I am really interested in learning how to do it, so I will get back to you if I come up with a solution!

    Edit: After some thinking I feel that I might have come up with a basic solution to creating a seed based generation. I have to work tomorrow, but I will modify the generator as soon as I can.

  7. #7
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export Module
    BiznessMan's Avatar
    Join Date
    Apr 2007
    Location
    Sandy UT
    Posts
    105
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Awesome. I have the dungeon generator plugin installed and it has a seed option, but I have no idea how the logic works

  8. #8
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export Module
    Wolkam's Avatar
    Join Date
    Jan 2012
    Location
    Toulouse, France
    Posts
    241
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nice work, It can be very usefull, thx for your work Yima

  9. #9
    Clicker Fusion 2.5 DeveloperAndroid Export Module
    MOBii's Avatar
    Join Date
    Dec 2013
    Location
    Tacloban
    Posts
    63
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That's truly impressive

  10. #10
    Clicker Fusion 2.5 Developer

    Join Date
    May 2007
    Posts
    548
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Indeed. Very nice.

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Random dungeon help.
    By blub in forum Multimedia Fusion 2 - Technical Support
    Replies: 13
    Last Post: 8th March 2012, 02:22 AM
  2. Random Dungeon Generation
    By nivram in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 30th October 2011, 08:14 PM
  3. Random Dungeon generator?
    By Jacob in forum Multimedia Fusion 2 - Technical Support
    Replies: 15
    Last Post: 17th May 2008, 01:52 AM
  4. Random dungeon/maze generator, plz?
    By Karasu in forum The Games Factory 2 - Technical Support
    Replies: 9
    Last Post: 17th April 2007, 07:04 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
  •