Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Beyond the basic user input and sprite movement, we’ve got the combination of both—when user interaction affects the elements on the screen. The following programs are small examples of user interaction with sprites.
Sprites on the screen are typically moved with either the mouse or the keyboard. For the keyboard, the arrow keys are typically used to control the sprite.