The only structure you need to follow with Flame is that you need to have two subfolders in assets: Audio and images. Such as:

    Flame.audio.play('explosion.mp3');
    
    Flame.images.load('player.png');
    Flame.images.load('enemy.png');
Copy the code

The file structure is as follows:

.├ ── exercises ─ audio │ ├─ download.pngCopy the code

Don’t forget to add these files to the pubspec.yaml file:

    flutter:
      assets:
        - assets/audio/explosion.mp3
        - assets/images/player.png
        - assets/images/enemy.png
Copy the code