The_Official_Raspberry_Pi_-_Beginner’s_Book_Vol1,_2018 (1)

(singke) #1

(^76) THE OFFICIAL RASPBERRY PI BEGINNER'S GUIDE
Click the green flag to run your program, and see how far the ISS travels in the time it takes
you to hit the SPACE key. Remember to save your program when you’ve finished, so you can
easily load it again in the future without having to start from the beginning!
5 Figure 4-14: Tim tells you how far the ISS has travelled
Project 2: Synchronised Swimming
Most games use more than a single button, and this project demonstrates that by offering
two-button control using the ← and → keys on the keyboard.
CHALLENGE: WHO’S FAST?
As well as astronaut, what other professions require
split-second reflexes? Can you draw your own sprites
and backgrounds to show one of these professions?
ONLINE PROJECT
This project is also available online at rpf.io/synchro-swimming

Free download pdf