feat: Добавлена обработка столкновения ракетки и бонуса, логика обработки бонусов подключена в tick

This commit is contained in:
Ilia Mashkov
2026-07-19 15:09:56 +03:00
parent a4c4e2a192
commit 511b20c939
6 changed files with 185 additions and 1 deletions
+2 -1
View File
@@ -17,7 +17,7 @@ import { LEVELS } from './const/levels';
import { Game } from './game';
import { calculateCollision } from './lib/calculateCollision/calculateCollision';
import { calculateDirection } from './lib/calculateDirection/calculateDirection';
import { createGameView, rebuildBrickViews, syncronizeViewsWithGame } from './view';
import { createGameView, managePerkViewsLifetime, rebuildBrickViews, syncronizeViewsWithGame } from './view';
(async () => {
// Create a new application
@@ -60,6 +60,7 @@ import { createGameView, rebuildBrickViews, syncronizeViewsWithGame } from './vi
rebuildBrickViews(views, game, container);
currentLevel = game.currentLevel;
}
managePerkViewsLifetime(views, game, container);
syncronizeViewsWithGame(views, game);
});
})();