User Tag List

Page 1 of 7 1 2 3 ... LastLast
Results 1 to 10 of 61

Thread: Dungeon Object Beta

  1. #1
    Clicker Fusion 2.5 DeveloperSWF Export ModuleUnicode Add-on
    Looki's Avatar
    Join Date
    Aug 2006
    Location
    Karlsruhe, Germany
    Posts
    3,739
    Mentioned
    4 Post(s)
    Tagged
    1 Thread(s)

    Dungeon Object Beta

    Hey there! LB requested a maze generation a couple of weeks ago.
    In his (and mine) opinion, Pathfinding Object's maze generation is too limited and buggy. So I sat down and tried to program a maze generator, but failed.
    Now, about 5 days ago, RickyRombo requested such an extension again - and z33z, author of the Pathfinding Object, posted a link to an open-ource dungeon generator.
    It really impressed me, so I tried to program an extension that implements the library. It was really easy, and I'm really happy with the results.

    Here are some screenshots and explanations.
    All these were generated using the inbuilt painter for the Overlay Object.

    [img:left]http://clickteam.info/looki/Pictures/Dungeon/0.png[/img]<-- A classic maze. Very random structure, many deadends.
    This was generated using the default settings.

    http://clickteam.info/looki/Pictures/Dungeon/1.png
    The same maze with rooms. Rooms are always rectangular.
    The red rectangles are doors.
    http://clickteam.info/looki/Pictures/Dungeon/2.png
    Many small rooms, doesn't take much longer to generate.
    http://clickteam.info/looki/Pictures/Dungeon/3.png
    No deadends at all.
    http://clickteam.info/looki/Pictures/Dungeon/4.png
    Not very random, but not very sparse either.
    http://clickteam.info/looki/Pictures/Dungeon/5.png
    Super sparse.
    http://clickteam.info/looki/Pictures/Dungeon/6.png
    Random and sparse. Pretty boring.
    http://clickteam.info/looki/Pictures/Dungeon/7.png
    Bigger mazes are possible, too! Even mazes 5 times as big are generated quickly on most computers.

    http://clickteam.info/looki/Pictures/Dungeon/8.png
    No thick walls, but a grid.
    http://clickteam.info/looki/Pictures/Dungeon/9.png
    Yay, colors.

    Notes

    If you enter 10x10 as size, the size will be 21x21.
    The formula is pretty easy, (X*2+1). (X-1)/2 to convert it back.
    Internally, the maze is stored in blocks with a wall at the top or left side, walls don't have their own block, that's why.
    There are convertion expressions for those who don't want to use formulas.

    The painter only works with Overlay now.
    I'll add image export (BMP,PNG...) later.

    Just look at the example to get some idea how it works.

    Get the latest beta here. Have fun testing!
    http://clickteam.info/looki/Extensions/Beta/Dungeon.zip


  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Sep 2006
    Location
    Dublin, Ireland / Covilha, Portugal
    Posts
    227
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Dungeon Object Beta

    Wow, cool

    Could this work with the raycast extension and make random mazes to be displayed by raycast? That would be cool...

    Also a way to have keys to open certain doors? Doubt it will be possible...

    Anyway, excellent work

  3. #3
    Clicker Fusion 2.5 DeveloperSWF Export ModuleUnicode Add-on
    Looki's Avatar
    Join Date
    Aug 2006
    Location
    Karlsruhe, Germany
    Posts
    3,739
    Mentioned
    4 Post(s)
    Tagged
    1 Thread(s)

    Re: Dungeon Object Beta

    Hey! I'm sure you'll be able to combine this with the Raycasting object.

    That key thing would require a lot of logic and math.. not sure if I can do it.

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleMac Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Tisnart's Avatar
    Join Date
    Feb 2008
    Location
    On, Canada
    Posts
    1,031
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Re: Dungeon Object Beta

    OMG, this is awsome! :cool:
    Must figure out how to implement into a game

  5. #5
    Clicker Multimedia Fusion 2
    dragonguy's Avatar
    Join Date
    Apr 2008
    Location
    RULE BRITANNIA!
    Posts
    3,071
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Dungeon Object Beta

    Iv'e always tried to do this type of thing using fastloops but failed due to lack of know how.

    My algorithms weren't very good but they did the trick and created the maze.

    Now thanks to you it's a Jillion times easier.

  6. #6
    No Products Registered

    Join Date
    Jul 2006
    Location
    Umeň, Sweden
    Posts
    1,090
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Dungeon Object Beta

    Just tried this with the Raycasting object and it works like a charm
    Awesome extension!

    Small bug I noticed: If you set minimum number of rooms to say 1 and leave maximum number of rooms at 0 it crashes!

  7. #7
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    Stephen's Avatar
    Join Date
    Aug 2008
    Location
    Montana
    Posts
    4,515
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Dungeon Object Beta

    This is very cool, Looki! Great job!

    stephen1980
    _____________________________________________
    Nivram's Examples -Need extensions? Send me a PM.-


  8. #8
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    RickyRombo's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere between here and there
    Posts
    3,167
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Dungeon Object Beta

    Told you it was going to be famous, Looki!

    I absolutely love it!

  9. #9
    No Products Registered

    Join Date
    Apr 2009
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Dungeon Object Beta

    Hey, that's awesome! Really easy to use and super easy to tweak, this is really great.

    Only problem I have with it now is that when you use actives to paint the maze rooms end up looking pretty bad. Are you going to take this extension further to make tile based engines work better with rooms? Like each wall being a full tile thick?

    It's mentioned in part 10 from the link z33z posted in the other thread, it's under "Converting to Tiles" in this link:
    http://dirkkok.wordpress.com/2007/12/21/generating-random-dungeons-part-10/

    That would make this already amazing extension immensely more useful in my opinion. There could be an "(x,y) is door?" condition so you could make each door be an active object.

    I know this is just a beta so maybe you've already got that planned and didn't say, but I'm just making sure the idea is out there.




    I dunno how doable this is, but it's just a fun idea I had cause this made me think of NetHack. Maybe you could work in a "room type" system? So you'd have a random chance of floors in a room being categorized as a specific type of room.
    It could be like this:
    Room type 1- 50% chance
    Room type 2- 25% chance
    Room type 3- 25% chance
    and it would randomly assign room tiles that variable or something. Then you'd have a "(x,y) is roomtype(1)" condition. Then in your own code (this part isn't built into the extension of course" you'd be able to create certain items on the floor if it was that type.
    example: Room type 1 = treasure room, user randomly generates treasures on the floor.
    Again just a fun suggestion, if you've got the time or if it's easy to do. I imagine it'd be pretty useful.


    Sorry for all that, this extension is just really exciting!
    Thanks for working on this!

  10. #10
    Clicker Fusion 2.5 DeveloperSWF Export ModuleUnicode Add-on
    Looki's Avatar
    Join Date
    Aug 2006
    Location
    Karlsruhe, Germany
    Posts
    3,739
    Mentioned
    4 Post(s)
    Tagged
    1 Thread(s)

    Re: Dungeon Object Beta

    Thanks, DanielRiehn. Fixing it.
    Sheexy, that second link z33z posted is a different algorithm. I I agree it would be useful - I'll try to convert the code to work with the extension.
    The treasure generation is kind of supported by the library, if I'm not mistaken. Floor types aren't, I agree that would be cool.

    Thanks for all the reviews!

    EDIT: Uh, I just noticed the examples are not in Examples\Dungeon Object but Examples\! Sorry.

Page 1 of 7 1 2 3 ... LastLast

Similar Threads

  1. Dungeon extension object
    By AndyH in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 9th March 2012, 10:33 PM
  2. [Request] Dungeon object into flash
    By NeoMonkey in forum SWF/Flash Export Module Version 2.0
    Replies: 3
    Last Post: 10th August 2010, 01:11 AM
  3. Dungeon Object
    By Looki in forum Released Extensions
    Replies: 0
    Last Post: 10th February 2010, 11:00 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
  •