Book Image

Building Games with Flutter

By : Paul Teale
Book Image

Building Games with Flutter

By: Paul Teale

Overview of this book

With its powerful tools and quick implementation capabilities, Flutter provides a new way to build scalable cross-platform apps. In this book, you'll learn how to build on your knowledge and use Flutter as the foundation for creating games. This game development book takes a hands-on approach to building a complete game from scratch. You'll see how to get started with the Flame library and build a simple animated example to test Flame. You'll then discover how to organize and load images and audio in your Flutter game. As you advance, you'll gain insights into the game loop and set it up for fast and efficient processing. The book also guides you in using Tiled to create maps, add sprites to the maps that the player can interact with, and see how to use tilemap collision to create paths for a player to walk on. Finally, you'll learn how to make enemies more intelligent with artificial intelligence (AI). By the end of the book, you'll have gained the confidence to build fun multiplatform games with Flutter.
Table of Contents (17 chapters)
1
Part 1: Game Basics
5
Part 2: Graphics and Sound
11
Part 3: Advanced Games Programming

What else should I learn?

Now you have mastered the basics of game development with Flame, let's look at what else you can learn that are more advanced topics but are very useful in expanding your game development knowledge.

Forge2d

A lot of games use advanced physics to make the games more realistic, such as using gravity to affect how sprites jump and fall or calculating the trajectory of a falling bird in Angry Birds.

There is a very good physics engine available called Forge2d, which is based on the famous Box2d engine, which is worth investigating if you want to make your games more realistic.

You can find everything you need to get started at https://docs.flame-engine.org/1.0.0/forge2d.html.

Nakama

Single-player games can be a lot of fun, but games go to a whole new level when you play them with your friends. Multiplayer game development is a very complex subject to do from scratch, but it is a useful subject to learn and can improve your games a lot. Fortunately...