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 ...

Get Learn 2D Game Development with C# 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.