[plugin] rex_maze_gen

  • Generate random maze asynchronously. Reference: rot.js

    Demo

    • generate a random maze in many ticks. Click to generate another one.

    Document, plugin and sample capx are included.

    Generate random dungeon map which composed of walls, rooms, and corridors asynchronously. Reference: rot.js

    Demo

    • generate a random map in many ticks. Click to generate another one, or click left -top text to change generating mode.

    Document, plugin and sample capx are included.

    This plugin and Roguelike plugin both use rot.js api. The different are

    • This plugin generates map asynchronously using WebWorker. Roguelike plugin generates map at the same tick. So that it might stuck engine while generating a bigger map.
    • This plugin can be exported with minify, Roguelike plugin can not.
  • could you use pathfinding with it or is it just a background with no collisions? I did look at the demo just kept displaying a new map ever click.

    Love the plugins, keep them coming. Jeremy C.

  • Carbincopy

    The output of this plugin is a 2d array only. Designer could display the result by sprites or tilemap.

    Path finding could be implemented by official pathfinding behavior, or this path finding plugin of my board plugin system, or something else.

    BTW, Roguelike plugin has a pathfinding function already.

  • Update

    Add rex_dungeon_gen plugin to generate random dungeon map which composed of walls, rooms, and corridors asynchronously. Reference: rot.js

    Demo

    • generate a random map in many ticks. Click to generate another one, or click left -top text to change generating mode.

    Document, plugin and sample capx are included.

  • thank you so much rex~!

    i love it!

    And a question about dungeon map, i want to turn off the corridor generate,so I set the corridor min,max to "0", is right?

    And can i turn off it on rogue,uniform mode?

    thank a lot!

  • corpvs2

    Only "Digger" mode has Corridor minimum length, Corridor maximum length parameter. These 3 modes all have corridors (i.e. connectors of rooms)

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • The extra h on the demo url is because it's so hot.

    Thanks Rex.

  • The extra h on the demo url is because it's so hot.

    Thanks Rex.

    Thanks, I had fixed the link of 2nd demo.

  • I get it,thank you so much!

  • Update

    Add "Condition:Corridor type" to classify a specific corridor into

    • Dead end : it has 1 corridor neighbor only
    • L-junction : it has 2 corridor neighbors, and they are arranged in a L-shape
    • I-junction : it has 2 corridor neighbors, and they are arranged in a line
    • T-junction : it has 3 corridor neighbors
    • X-junction : it has 4 corridor neighbors

    types. See the demo at 1st post.

  • thank for update,

    a question.

    can i set the door tile to half size tile?or other size?

    i set the corridor to zero,so now only door connectors of rooms.I want set the door tile a little bit small,the room will be more compact.

    Does it possible?

    thanks

  • corpvs2

    The minimum unit is "1" tile, it is impossible to have "half tile".

  • ok,thank you rex!

  • Awesome plugin! Any plans to implement other rot.js features like FOV computation?

  • I will try to integrate FOV feature into my board plugin system.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)