Book Image

Raspberry Pi Projects for Kids

By : Daniel Leonard Bates
Book Image

Raspberry Pi Projects for Kids

By: Daniel Leonard Bates

Overview of this book

Table of Contents (11 chapters)

Chapter 3. Testing Your Speed

In this chapter, we're going to create a new game that will test how quickly the player can react. To do this, we will create our own game controller—something you can't do on a normal computer—and write a program to handle when the controller's buttons are to be pressed.

If you do not have the components required to create the controller, an alternative program that uses the keyboard instead is provided at the end of the chapter. It is very similar to the default program, so it is still worth reading through this chapter to learn how everything works.