Plugin : Maze gen
Author:Rex.Rainbow
- Generate random maze asynchronously. Reference: http://ondras.github.io/rot.js/hp/
Download
Actions
Maze
Action:Generate
- Generate maze.
- Width ( number ) : Map width.
- Height ( number ) : Map height.
- Algorithm ( Combo ) : Algorithm.
- Options : ["divide","icey","eller"]
- Seed ( number ) : Random seed.
Action:Cancel
- Cancel current generating process.
Action:Release
Expressions
Map
Expression:MapWidth
Expression:MapHeight
Expression:ValueAt
- Get cell value at logic X,Y. 1 is a wall, 0 is an empty space. Return -1 if this cell is invalid.
- X ( number ) : Logic X.
- Y ( number ) : Logic Y.
Expression:MapAsJson
- Get map as JSON string. Return "" if map is not ready.
Conditions
State
Condition:Is generating
- Return true if map is generating.
Condition:On completed
- Trigger when map generating completed.
Value
Condition:Is a wall
- Return true if it is a empty space or a wll in a specific logic position.
- X ( number ) : Logic X.
- Y ( number ) : Logic Y.
- Type ( Combo ) : Type of tile.
- Options : ["empty space","wall"]