© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2024
A. Cruz YorisFlame Game Developmenthttps://doi.org/10.1007/979-8-8688-0063-4_1

1. Create a Project in Flutter and Add Flame

Andrés Cruz Yoris1  
(1)
Caracas, Venezuela
 

In this chapter, we are going to learn how to create a Flutter project and add the necessary base library to develop our 2D games using Flutter; therefore, it is a chapter that you should refer to every time we create a new project in later chapters.

Let’s start by creating the project that we will use to create the application:
$ flutter create <ProjectName>
Once the project is created in Flutter, we change to the project folder:
$ cd <ProjectName>
And we add the Flame library:
$ flutter ...

Get Flame Game Development: Your Guide to Creating Cross-Platform Games in 2D Using Flame Engine in Flutter 3 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.