Test Your Knowledge: Exercise

  1. Take what you've learned in this chapter and make yet another type of sprite object. Make this object move randomly around the screen. To do this, you'll want to create a random timer that signifies when the object should change directions. When the timer expires, have the object move in a different direction, and then reset the random timer to a new random time at which the object will again shift its direction.

Get Learning XNA 3.0 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.