Skip to content

Commit

Permalink
Move mask.ts to draw folder
Browse files Browse the repository at this point in the history
  • Loading branch information
halftheopposite committed Jul 21, 2023
1 parent 45bfa58 commit 5fcf814
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/draw/index.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { TilesColors, TilesTypes } from "../config";
import { computeTilesMask } from "../generate/mask";
import { Dimensions, Node, Room, Tile, Tiles } from "../types";
import { getRoomCenter, printTiles, traverseTree } from "../utils";
import { getRoomCenter, traverseTree } from "../utils";
import { initializeContext } from "./canvas";
import { computeTilesMask } from "./mask";
import { tilesTextures } from "./tiles";
import {
getDungeonDimensions,
getTileSize,
createTilemap,
duplicateTilemap,
getDungeonDimensions,
getTileSize,
} from "./utils";

/**
Expand Down
3 changes: 1 addition & 2 deletions src/generate/mask.ts → src/draw/mask.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { TilesTypes } from "../config";
import { duplicateTilemap } from "../draw/utils";
import { Tiles } from "../types";
import { duplicateTilemap } from "./utils";

const MASK_TO_TILE_ID = {
2: 1,
Expand Down

0 comments on commit 5fcf814

Please sign in to comment.