The asset converter is a program that prepares media on your PC
for use with the Gameduino 2/3. You can use the asset converter to:

convert sprite graphics for the Gameduino2

convert audio samples

convert TrueType (TTF) fonts

After installation, you can run the asset converter by typing:

gd2asset --help

or:

gd3asset --help

into a command shell. You should see something like:

usage: gd2asset <options> <assets>
-o output header file
-f output asset file (default is header file)
If no output header file is given, then "default_assets.h" is used
Each asset is a filename, optionally followed by some var=val
assignments. For example:
pic1.png image, format ARGB4
pic2.jpg,format=L8 image, format L8
serif.ttf,size=16 font, 16 pixels high
The assets are compiled into flash, or if the "-f" option is given
into a file. In this case the file should be copied to the
microSD card.
In either case, calling LOAD_ASSETS() from the program loads all
assets.

There are two ways of storing assets.
The first is to use an array in Arduino flash memory. This works well for small sized assets, up to around 20K.
The second way is to load the assets from SDcard memory.

If you run it like this:

gd2asset -o myassets.h pic1.png pic2.png pic3.png

then it creates a file myassets.h. Add it to your Arduino sketch,
and in your sketch do: