Pygame Zero lays down strict rules about what your files can be called and where they should be saved on your Raspberry Pi. Filenames must be in all lowercase, which helps to ensure that they work across different computers. Your images must be stored in a folder called
images
, and your sounds in a folder called sounds
.Let's set up those folders now. Follow these steps:
- In the desktop environment, click the taskbar’s File Manager icon.
- In the
pi
folder, right-click, and then choose Create New → Folder from the contextual menu that appears. - Name your folder
images
. - Repeat Step 2, but this time name your new folder
sounds
. - Copy your image files into the
images
folder, and your sounds into thesounds
folder.
Downloads
folder, which is also in your pi
folder. You may need to extract them from a .zip
file, by double-clicking the .zip
file and then clicking the Extract Files button when Xarchiver opens. After extracting the files, you can copy them to the images
and sounds
folders.