You are previewing Raspberry Pi Gaming - Second Edition.
O'Reilly logo
Raspberry Pi Gaming - Second Edition

Book Description

Design, create, and play all kinds of video games on your Raspberry Pi computer

In Detail

This book teaches you how to hook up your Raspberry Pi computer, install different games from a variety of genres, and set up emulators so you can play hundreds of classic arcade and console games. Moreover, you will also learn how to design, create, and play video games that you create from scratch.

After learning how to set up a Raspberry Pi, you will begin by creating your own version of Flappy Bird and a clone of the classic game Pong in the Scratch programming language. You will also be guided through the installation process for a wide range of gaming operating systems, such as PiPlay, RetroPie, and ChameleonPi for the Raspberry Pi. Furthermore, you will discover in-depth details about emulators that recreate classic 80s arcade games to consoles that many grew up with.

You will also learn more about installing games through Linux repositories, setting up controllers, programming pieces of your Minecraft world, and troubleshooting various issues that can crop up with your Raspberry Pi.

What You Will Learn

  • Program games utilizing the Scratch language

  • Install multiple operating systems

  • Set up your Raspberry Pi computer

  • Install and configure game system emulators

  • Control your Minecraft world with the Python programming language

  • Explore different kinds of joysticks, controllers, game pads, and other input devices

  • Install applications in Linux

  • Downloading the example code for this book. You can download the example code files for all Packt books you have purchased from your account at If you purchased this book elsewhere, you can visit and register to have the files e-mailed directly to you.

    Table of Contents

    1. Raspberry Pi Gaming Second Edition
      1. Table of Contents
      2. Raspberry Pi Gaming Second Edition
      3. Credits
      4. About the Author
      5. About the Reviewers
        1. Support files, eBooks, discount offers, and more
          1. Why subscribe?
          2. Free access for Packt account holders
      7. Preface
        1. What this book covers
        2. What you need for this book
        3. Who this book is for
        4. Conventions
        5. Reader feedback
        6. Customer support
          1. Downloading the color images of this book
          2. Errata
          3. Piracy
          4. Questions
      8. 1. Getting Started with the Raspberry Pi
        1. The different flavors of a Raspberry Pi
        2. Setting up an SD card
          1. Creating the SD card in Windows
          2. Creating the SD card in Macintosh OS X
          3. Creating the SD card in Linux
          4. Using NOOBS
        3. Hooking up your Raspberry Pi
          1. Connecting to a Wi-Fi access point
        4. Summary
      9. 2. Scratch
        1. What is Scratch?
          1. Understanding the Scratch interface
          2. Making Scratchy move
          3. Some pointers and terminology
        2. Let's build a Flappy Bird clone!
          1. Creating a new project
          2. Making the variables
          3. Setting the stage
          4. Making the floor
          5. Creating the pipes
          6. Working with the main character
          7. Enhancing the game
        3. Ping Pong
          1. Making the paddles
          2. Following the bouncing ball
        4. Summary
      10. 3. Raspberry Pi Gaming Operating Systems
        1. PiPlay
        2. RetroPie
        3. ChameleonPi
        4. Summary
      11. 4. Emulators
        1. Raspberry Pi App Store
          1. Using the App Store
        2. Emulators
          1. Mednafen
          2. FCEUX (NES)
          3. PiSNES (SNES)
          4. MAME4ALL
          5. FinalBurn Alpha
          6. PCSX_ReARMed
          7. PicoDrive (Genesis/Mega Drive)
          8. Stella (Atari 2600)
          9. Controls
        3. Summary
      12. 5. Ported Games
        1. Cave Story
          1. Installing and running
          2. Controls
        2. Doom
          1. Installing and running
          2. Controls
        3. Open Arena
          1. Installation
          2. Single player match
          3. Multiplayer match
            1. Running a server
            2. Joining a server
          4. Controls
        4. Minecraft: Pi Edition
          1. Installing and running
          2. Creating a new Minecraft world
          3. Using the Minecraft: Pi Edition Application Programming Interface
          4. Multiplayer Minecraft
          5. Controls
        5. Summary
      13. 6. Linux Games
        1. FreeCiv
          1. Installing and running
          2. Hosting a FreeCiv server
          3. Learning the controls
        2. SuperTux
          1. Installing and running
          2. Learning the controls
        3. Njam
          1. Installing and running
          2. Learning the controls
        4. Galaga: Hyperspace
          1. Installing and running
          2. Learning the controls
        5. Finding games via the repositories
        6. Summary
      14. 7. Controllers
        1. Controllers on the Raspberry Pi
          1. Gamepads
          2. Arcade sticks
          3. Xbox 360 controllers
          4. Sony DualShock 3 controllers
          5. USB encoders
          6. GPIO pins
            1. Installing and building
        2. Troubleshooting controllers
        3. Summary
      15. 8. Troubleshooting
        1. Using raspi-config
        2. Common troubleshooting
          1. EmulationStation returns an error when I try to launch it
          2. Nothing happens when I apply power
          3. Some of the games seem slow
          4. Connecting via HDMI doesn't work
          5. The DualShock 3 controller does not connect
          6. I get an error when compiling Retrogame
        3. Summary
      16. A. Games List
        1. Games available via Apt-Get
        2. Raspberry Pi 2
      17. Index