Constructing Games

Third-party Tutorial: Brick Breaker


Learning Objectives

  • You can follow a third-party tutorial on building a game with Flame.
  • You know of one way to create a brick breaker game with Flutter.

At this point of the course, you should be sufficiently familiar with Dart, Flutter, and Flame, so that you can follow a third-party tutorial that focuses on building a game with Flame. In the following exercise, this is exactly what you will do.

Following a "Brick Breaker" tutorial

0 / 120 points

Open up the address https://codelabs.developers.google.com/codelabs/flutter-flame-brick-breaker that contains a tutorial for building the Brick Breaker game with Flutter and Flame.

Follow the tutorial, building the application piece by piece. Once finished, return the application here as a zip, where the contents of the zip contain the contents of the lib folder of the project that you created following the tutorial. The contents of the zip should be as follows.

Terminal window
src/components/
ball.dart
bat.dart
brick.dart
components.dart
play_area.dart
src/widgets/
game_app.dart
overlay_screen.dart
score_card.dart
src/
brick_breaker.dart
config.dart
main.dart

As your task here is to follow the tutorial, keep to the original file structure in the tutorial. You may, if you choose, use libraries used in the course to adjust the behavior of parts of the application.

There are no automated tests for this exercise beyond checking the file structure. Do not submit the solution before finishing the full tutorial, i.e. finishing all the steps to the end of the tenth part “Keep score”.

To emphasize, do not submit the solution before working through the full tutorial locally.