We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 27cf115 commit 73f3760Copy full SHA for 73f3760
src/app/state/tetris/tetris.service.ts
@@ -244,13 +244,12 @@ export class TetrisService {
244
this._soundManager.gameOver();
245
let { points, max } = this._query.raw;
246
let maxPoint = Math.max(points, max);
247
+ LocalStorageService.setMaxPoint(maxPoint);
248
this._store.update({
- gameState: GameState.Over,
249
- current: null,
+ ...createInitialState(this._pieceFactory),
250
max: maxPoint,
251
- points: 0
+ gameState: GameState.Over,
252
});
253
- LocalStorageService.setMaxPoint(maxPoint);
254
}
255
256
private get _isCollidesBottom(): boolean {
0 commit comments