Skip to content
This repository has been archived by the owner on Sep 29, 2024. It is now read-only.

Commit

Permalink
added formating changes
Browse files Browse the repository at this point in the history
  • Loading branch information
dolerich-hirnfiedler committed May 27, 2024
1 parent a7c46f4 commit e9510f0
Showing 1 changed file with 42 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,25 +92,62 @@ && getNode(x - 1, y).type == FlatTiledNode.TILE_WALL) {
}
// check if wall is above
if (getNode(x, y + 1).type == FlatTiledNode.TILE_WALL) {
addConnection(n, Direction.N, Direction.E, Direction.S, Direction.W, Direction.SE, Direction.SW);
addConnection(
n,
Direction.N,
Direction.E,
Direction.S,
Direction.W,
Direction.SE,
Direction.SW);
continue;
}
// check if wall is below
if (getNode(x, y - 1).type == FlatTiledNode.TILE_WALL) {
addConnection(n, Direction.N, Direction.E, Direction.S, Direction.W, Direction.NE, Direction.NW);
addConnection(
n,
Direction.N,
Direction.E,
Direction.S,
Direction.W,
Direction.NE,
Direction.NW);
continue;
}
// check if wall is left
if (getNode(x - 1, y).type == FlatTiledNode.TILE_WALL) {
addConnection(n, Direction.N, Direction.E, Direction.S, Direction.W, Direction.NE, Direction.SE);
addConnection(
n,
Direction.N,
Direction.E,
Direction.S,
Direction.W,
Direction.NE,
Direction.SE);
continue;
}
// check if wall is right
if (getNode(x + 1, y).type == FlatTiledNode.TILE_WALL) {
addConnection(n, Direction.N, Direction.E, Direction.S, Direction.W, Direction.NW, Direction.SW);
addConnection(
n,
Direction.N,
Direction.E,
Direction.S,
Direction.W,
Direction.NW,
Direction.SW);
continue;
}
addConnection(n, Direction.N, Direction.E, Direction.S, Direction.W, Direction.NE, Direction.SE, Direction.NW, Direction.SW);
addConnection(
n,
Direction.N,
Direction.E,
Direction.S,
Direction.W,
Direction.NE,
Direction.SE,
Direction.NW,
Direction.SW);
continue;
}
// Do not delete this part it is important for the edge
Expand Down

0 comments on commit e9510f0

Please sign in to comment.