feat(game): В класс Game добавлен метод update вызывающий функцию tick
Build and push / build (push) Skipped

This commit is contained in:
Ilia Mashkov
2026-07-17 12:32:47 +03:00
parent b4daf72036
commit 5835aed803
+8
View File
@@ -30,4 +30,12 @@ export class Game {
this.bricks = layBricks(columnAmount, rowAmount, BRICK_WIDTH, BRICK_HEIGHT);
}
/**
* Изменяет значения сущностей в зависимости от времени
* @param {*} deltaTime изменение времени из Ticker
*/
update(deltaTime) {
tick(this, CONTAINER_WIDTH, CONTAINER_HEIGHT, deltaTime);
}
}