Raspberry Pi Gaming Second Edition
Format: PDF / Kindle (mobi) / ePub
Design, create, and play all kinds of video games on your Raspberry Pi computer
About This Book
- Program your very own video game on the Raspberry Pi using the Scratch programming language
- Install and manage your Raspberry Pi
- Set up your Raspberry Pi to play hundreds of retro and classic games
Who This Book Is For
If you are someone who loves to play games and are interested in learning more about the capabilities of your Raspberry Pi, this book is for you. Basic knowledge of Raspberry Pi programming is expected.
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
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.
Minecraft is a sandbox-style game made by the game company Mojang. Because it is a sandbox, there is no right or wrong way to play it. The concept behind the game is that you explore and build using different kinds of blocks in a randomly created world. It has been compared to a virtual LEGO set. If you can think it, you can build it in Minecraft. It was originally developed for the Windows PC, but has since been ported to OS X, iOS, Android, and various game consoles. Mojang developed and
and use the wireless USB adapter for Xbox 360 controllers. Follow the given steps to install xboxdrv: Type sudo apt-get –y install xboxdrv on the command line and press Enter.To test whether it works, plug in your Xbox controller, type sudo xboxdrv --kernel-detach-driver and press Enter.The lights on the controller should stop blinking and be replaced with one solid light.Pressing any button will cause your screen to list the current status of each button.Press Ctrl + C to close xboxdrv. To use
sixad --start &.Press Ctrl + X, then press Y to save the file.Now, when you log in to your Pi, sixad will automatically launch and ask to pair with your controller. USB encoders At the heart of every Arcade stick is a USB encoder. It takes the action of hitting a button and turns it into an input for your Raspberry Pi. Some encoders emulate a keyboard, while others act as an actual joystick. Using an encoder, you can very easily build your own customized controller. There are hundreds of
the Raspberry Pi. Chapter 8. Troubleshooting So far, we learned how to make our own game, install numerous emulators and video games, hookup peripherals, connect joysticks, and use the hardware pins. However, what happens when something goes wrong? This chapter will guide you through some of the common issues you might face with a Raspberry Pi. Using raspi-config The raspi-config tool is a basic utility that is included in each copy of Raspbian. It is a menu-based GUI that enables you to
the device that corresponds to the SD card.Click on Write. Creating the SD card in Macintosh OS X OS X includes everything you need to create the SD card out of the box. We will use a utility called dd: Double-click the Raspbian image ZIP file. It will automatically extract into the same place as the ZIP file.Insert the SD card into your computer's SD card reader.Open the terminal application (located in the Applications | Utilities folder).Find the name of your SD card by typing diskutil