Get started with the tutorial at retropie.org.uk. To build a real arcade machine, get an arcade controller board like Pimoroni’s Picade X Hat or Adafruit’s Arcade Bonnet (both with a 3W amp for a speaker), or PetRockBlock’s ControlBoard or Ultimarc’s I-PAC (without). Then plug in your heavy-duty arcade buttons and analog joysticks.