Refactor/entities splitting #4

Merged
ilia merged 18 commits from refactor/entities-splitting into main 2026-07-18 08:02:47 +00:00
Showing only changes of commit e03b71d4af - Show all commits
+24
View File
@@ -0,0 +1,24 @@
/**
* Класс сущности "кирпич"
* @class
*/
export class Brick {
/**
*
* @param {number} x координата положения кирпича по оси X
* @param {number} y координата положения кирпича по оси Y
* @param {number} width положительное числовое значение ширины кирпича
* @param {number} height положительное числовое значение высоты кирпича
*/
constructor(x, y, width, height) {
this.x = x;
this.y = y;
this.width = width;
this.height = height;
this.alive = true;
}
kill() {
this.alive = false;
}
}