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 5

image

Pixel-accurate collisions

After completing this chapter, you will be able to:

  • Collide textured objects accurately
  • Understand the efficiency concerns of pixel-accurate collision
  • Program with pixel-accurate collision effectively and efficiently
  • Create a new game object that follows a few simple rules of physics

As you saw in the previous chapter, by including a few mathematical concepts and some software architecture principles, you can create game objects with more advanced and interesting behaviors while maintaining the simplicity and structure of your game implementation. This chapter continues in that same vein by further enhancing ...

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