Retro Gaming With RetroPi
If you have any questions or get stuck as you work through this in-class exercise, please ask the instructor for assistance. Enjoy!
Installation
- Configure the Raspberry Pi graphics settings:
sudo raspi-config
Performance Options -> GPU Memory
and set the GPU memory to 256MB.Advanced Options -> GL Driver
and selectLegacy
to disable the experimental GL driver.
- Reboot the Raspberry Pi after changing the settings.
- Install the dependencies of the RetroPie setup script:
sudo apt install git lsb-release
- Download the RetroPie setup script from GitHub:
git clone --depth=1 https://github.com/RetroPie/RetroPie-Setup.git
- Run the installation script:
cd RetroPie-Setup chmod +x retropie_setup.sh sudo ./retropie_setup.sh
In the interest of saving time, we will install emulators individually instead of proceeding with the full RetroPie installation.
- Navigate to
Manage packages -> core
thenInstall all core packages
(~8 Minutes) - Navigate to
Manage packages -> main -> lr-mame2003
thenInstall from pre-compiled binary
(~2 Minutes)
Running RetroPie
- Using the Raspberry Pi desktop file explorer, navigate to
/home/pi/RetroPie/roms/arcade
and copy over a MAME compatible arcade game ROM. - Run the command:
emulationstation
- You will be prompted to configure the RetroPie controls.
- Hold any key on the keyboard to start.
- Quickly press a key on the keyboard to assign an input.
- Hold any key to skip an input.
- Using the controls that have been assigned, navigate to the arcade game and try running it.
- Press the
HOTKEY
andSTART
inputs to exit a game. - To exit RetroPie, press
HOTKEY
andSTART
again, then go toQUIT -> QUIT EMULATIONSTATION
- If you plan to build an arcade machine accessible to the public using RetroPie, you may want to keep the
HOTKEY
hidden inside the physical enclosure.