melonJS
    Preparing search index...

    Type Alias DiagonalMode

    DiagonalMode: "never" | "always" | "atLeastOneWalkable" | "onlyIfNoObstacles"

    When a path may move diagonally:

    • "never": up, down, left and right only
    • "always": diagonally too, even between two walls
    • "atLeastOneWalkable": diagonally past a corner, when one of the two cells beside the step is open
    • "onlyIfNoObstacles": diagonally only when both cells beside the step are open, so a path never cuts a corner