Book description
Build a complete game from start to finish using Flutter and Flame while getting acquainted with each building block in game design along the way
Key Features
- Begin your Flutter game development journey with step-by-step instructions and best practices
- Understand the Flame game engine and its essential elements for making games, sprite animation, tilemaps, and audio
- Build enjoyable games with Flutter that can be played across different platforms
Book Description
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.
What you will learn
- Discover the Flame engine and how to use it in game programming in Flutter
- Organize the graphics and sounds used in your game
- Animate a sprite in your games and detect when the player collides with tiles
- Run the game as a web page and desktop app
- Expand our player control with key navigation
- Build your first game and make your enemies more intelligent with AI for games
Who this book is for
If you are a Flutter developer looking to apply your Flutter programming skills to games development, this book is for you. Basic knowledge of Dart will assist with understanding the concepts covered.
Table of contents
- Building Games with Flutter
- Contributors
- About the author
- About the reviewers
- Preface
- Part 1: Game Basics
- Chapter 1: Getting Started with Flutter Games
- Chapter 2: Working with the Flame Engine
- Chapter 3: Building a Game Design
- Part 2: Graphics and Sound
- Chapter 4: Drawing and Animating Graphics
- Chapter 5: Moving the Graphics with Input
- Chapter 6: Playing Sound Effects and Music
- Chapter 7: Designing Your Own Levels
- Chapter 8: Scaling the Game for Web and Desktop
- Part 3: Advanced Games Programming
- Chapter 9: Implementing Advanced Graphics Effects
- Chapter 10: Making Intelligent Enemies with AI
- Chapter 11: Finishing the Game
- Appendix: Answers
- Other Books You May Enjoy
Product information
- Title: Building Games with Flutter
- Author(s):
- Release date: June 2022
- Publisher(s): Packt Publishing
- ISBN: 9781801816984
You might also like
book
Flutter Projects
Learn Flutter and the Dart programming language by building impressive real-world mobile applications for Android and …
book
Flutter Recipes: Mobile Development Solutions for iOS and Android
Take advantage of this comprehensive reference to solving common problems when developing with Flutter. Along with …
book
Practical Flutter: Improve your Mobile Development with Google’s Latest Open-Source SDK
Explore what Flutter has to offer, where it came from, and where it’s going. Mobile development …
video
Flutter in Motion
In 2018, mobile app downloads topped 194 billion, and experts forecast that number to rise another …