O'Reilly logo

Learn 2D Game Development with C# by Robert Zhu, Kelvin Sung, Jack Keng-Wei Chang, Jebediah Pavleas

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CHAPTER 4

image

Getting Things Moving

After completing this chapter, you will be able to:

  • Program with rotated texture objects effectively
  • Understand the concept of rotation reference position
  • Implement autonomous controlled gradual turning and target-locked chasing behaviors

As you saw at the end of Chapter 3, “2D Graphics, Coordinates and Game State,” the behavior of your game objects has become more complex. You may have noticed this in the Simple Game Object and Simple Game State projects, in which you created soccer ball and basketball game objects. The behavior given to those objects allows them to move around the game window, detecting and ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required