feat(game): В класс Game добавлен метод update вызывающий функцию tick
Build and push / build (push) Skipped
Build and push / build (push) Skipped
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user