Example 1 demonstrates:
Changing object textures in reaction to input movement (left/right).
Example 2 demonstrates: Drawing of background with random choices of texture,
creating pseudo random animation, and detecting collision of objects.
Example 3 demonstrates: working with current position. Notice that, unlike a mouse,
gamepad is an input device that does not have a default on-screen icon representing a current position.
This example shows one way of conveying the sense of current position for the user.
This document and the related materials are developed with support from
Microsoft Research Computer Gaming Initiative under the Computer Gaming
Curriculum in Computer Science RFP, Award Number 15871.
Kelvin Sung
Computing and Software Systems
University of Washington, Bothell
ksung@u.washington.edu