Killing gnats with Flutter and Flame

Bo Hellgren
Flutter Community
Published in
14 min readApr 24, 2020

--

Learn how to build a simple game with advertisements and internationalization.

This tutorial describes how to build a simple game using Flutter and Flame, how to add advertisements, and how to internationalize it. The reader is assumed to have some Flutter experience. You should know how to create a Flutter project, how to test an app on a mobile phone attached to the computer, and how to use a Flutter plugin. If you are new to Flutter, start at flutter.dev.

The code is available as gists on GitHub, links below.

The completed app is available in the Google Play Store. To better understand what the target of this exercise is, install the app on an Android phone. Click this link:

https://play.google.com/store/apps/details?id=se.ndssoft.flame_test

Part 1. Build the screen layout

Create a Flutter project. Replace main.dart with the following code:

When you run this code, you should see the following layout:

--

--