O'Reilly logo

DarkBASIC Pro Game Programming, Second Edition by Joshua R. Smith, Jonathan S. Harbour

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 12. 2D Game Physics: Sprite Collision Testing

Collision testing, also called collision detection, allows the objects in a game to interact with each other. This occurs whenever two objects (or rather, sprites) hit each other on the screen. DarkBasic has two different ways to detect a collision between two sprites, and that is essentially what you will learn to do in this chapter. You’ll then put this powerful new game voodoo to work in the Darkanoid game to make it actually do something useful other than move the ball around. In this chapter, the following topics will be covered:

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