Technical requirements
To examine the source from this chapter, you can download it from https://github.com/PacktPublishing/Building-Games-with-Flutter/tree/main/chapter07 by following these steps:
- From https://github.com/PacktPublishing/Building-Games-with-Flutter/blob/main/chapter07/assets/images/tiles.png, download the
tiles.png
file and move it into theassets/images
local project folder. - From https://github.com/PacktPublishing/Building-Games-with-Flutter/blob/main/chapter07/assets/tiles/tiles.tmx, download the
tiles.tmx
file.
From https://github.com/PacktPublishing/Building-Games-with-Flutter/blob/main/chapter07/assets/tiles/tiles.tsx, download the tiles.tsx
file.
Then, move both files into the assets/tiles
local project folder after creating this folder.
- Open the
pubspec.yaml
file and add the following library dependency:flame_tiled: ^1.0.0
- In the
assets
section of the same file, let's add the tile assets we just downloaded:- assets/tiles...