February 2007
Beginner
109 pages
1h 42m
English
Key Press Detection 62Using a While Loop to Run Your Game 62Moving the UFO When Keys Are Pressed 63Exercise: Turbocharge Your UFO 65
The example in this section is much easier than the last one, and we're sure you'll find it more fun, too: You get to control the movement of your UFO yourself by pressing keys on the keyboard! Let's start with all of the program instructions:


There are only two new concepts to understand in this program: using a While loop instead of a For loop, and detecting keys that the user ...
Read now
Unlock full access