User Tag List

Page 2 of 2 FirstFirst 1 2
Results 11 to 16 of 16

Thread: Random Dungeon generator?

  1. #11
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleSWF Export Module
    DavidN's Avatar
    Join Date
    Jun 2006
    Location
    Boston, MA, USA
    Posts
    4,044
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Random Dungeon generator?

    I'm actually quite impressed! It's not the most readable code in the world, but I would have thought that generating a random dungeon would take a lot more than that. It's the kind of thing that's certainly easier in text-based language because of the large amount of variables you have to manipulate along the way, but I don't see any reason why it couldn't be put into a fastloop and made to run on an array, then that array looped through and displayed.

    (There is one bug - it seems the line reading "if (xsize < xmax) System.out.print("\n");" should be "if (y < ysize) System.out.print("\n");".)

  2. #12
    Clicker Multimedia Fusion 2SWF Export Module
    Jacob's Avatar
    Join Date
    Jul 2007
    Location
    Second pixel to the right
    Posts
    3,208
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Random Dungeon generator?

    I dont understand how I coud put that in a fastloop and make it run on an array....

  3. #13
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Jun 2006
    Posts
    6,773
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Random Dungeon generator?

    Quote Originally Posted by DavidN
    I'm actually quite impressed!
    http://roguebasin.roguelikedevelopment.org/index.php?title=Java_Example_of_Dungeon-Building_Algorithm

  4. #14
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleSWF Export Module
    DavidN's Avatar
    Join Date
    Jun 2006
    Location
    Boston, MA, USA
    Posts
    4,044
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Random Dungeon generator?

    I'm significantly less impressed!

  5. #15
    Clicker Multimedia Fusion 2SWF Export Module
    Jacob's Avatar
    Join Date
    Jul 2007
    Location
    Second pixel to the right
    Posts
    3,208
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Random Dungeon generator?

    Ok thats where i found it......couldnt remember

  6. #16
    Clicker Multimedia Fusion 2SWF Export Module
    Jacob's Avatar
    Join Date
    Jul 2007
    Location
    Second pixel to the right
    Posts
    3,208
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Random Dungeon generator?

    Anyway.....how could I test if a 16x16 square is adjacent(left,right,up,down)to a selected block. I picked one block at random, set its AS1 to "visited"(the rest are "unvisited"); I need to select a random direction,set the adjacent block to "visited", and change the previous block to "finished". All I can do is select the random block and set it to visited. Can anybody help?

    Im basing my formula on http://www.aarg.net/~minam/dungeon_design.html

Page 2 of 2 FirstFirst 1 2

Similar Threads

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