Skip to content

Commit

Permalink
Resolve issue preventing Tetris game from restarting (#834)
Browse files Browse the repository at this point in the history
  • Loading branch information
halildurmus committed Mar 24, 2024
1 parent fda9001 commit 06518c9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions example/tetris/game.dart
Expand Up @@ -9,13 +9,13 @@ import 'level.dart';
//
class Game {
final Canvas canvas;
late final Level level;
Level level;

bool isPaused;

Game(this.canvas) : isPaused = false {
level = Level(canvas);
}
Game(this.canvas)
: isPaused = false,
level = Level(canvas);

bool get isGameOver => level.isGameOver;

Expand Down

0 comments on commit 06518c9

Please sign in to comment.