feat(brick): Добавлены типы кирпичей: обычный, с 2 жизнями, неразрушаемый
This commit is contained in:
@@ -26,7 +26,7 @@ export function layBricks(levelMap, brickWidth, brickHeight) {
|
||||
for (let i = 0; i < levelMap.length; i++) {
|
||||
for (let j = 0; j < levelMap[i].length; j++) {
|
||||
if (levelMap[i][j] !== 0) {
|
||||
bricks.push(new Brick(j * brickWidth, i * brickHeight, brickWidth, brickHeight));
|
||||
bricks.push(new Brick(j * brickWidth, i * brickHeight, brickWidth, brickHeight, levelMap[i][j]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user