How to Set Up Folders on Your Raspberry Pi
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
Let’s set up those folders now. Follow these steps:
- In the desktop environment, click the taskbar’s File Manager icon.
- In the
pifolder, right-click, and then choose Create New → Folder from the contextual menu that appears.
- Name your folder
- Repeat Step 2, but this time name your new folder
- Copy your image files into the
imagesfolder, and your sounds into the
Remember that when you download files with your web browser, they will be saved in your
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