feat: Добавлена обработка столкновения ракетки и бонуса, логика обработки бонусов подключена в tick
This commit is contained in:
+2
-1
@@ -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);
|
||||
});
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user