diff --git a/board.js b/board.js index c3f760d..34991ef 100644 --- a/board.js +++ b/board.js @@ -1,4 +1,8 @@ -class Board { +import KEY, {COLS, BLOCK_SIZE, ROWS, COLORS, + ROTATION, POINTS, LINES_PER_LEVEL, LEVEL} from "./constants.js"; +import Piece from "./piece.js"; +import moves, {account, pointsSound, time} from "./main.js"; +export default class Board { constructor(ctx, ctxNext) { this.ctx = ctx; this.ctxNext = ctxNext; diff --git a/constants.js b/constants.js index 1dcc85e..fc5d5c0 100644 --- a/constants.js +++ b/constants.js @@ -80,3 +80,9 @@ const ROTATION = { }; [COLORS, SHAPES, KEY, POINTS, LEVEL, ROTATION].forEach(item => Object.freeze(item)); + +export default KEY; +export { + COLS, BLOCK_SIZE, ROWS, COLORS, SHAPES, + LEVEL, ROTATION, POINTS, LINES_PER_LEVEL, NO_OF_HIGH_SCORES +}; \ No newline at end of file diff --git a/index.html b/index.html index 79eec35..951cec7 100644 --- a/index.html +++ b/index.html @@ -37,15 +37,22 @@