O'Reilly logo

OpenGL ES 2 for Android by Kevin Brothaler

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 9Adding Touch Feedback: Interacting with Our Air Hockey Game

Good user interactivity through touch support is the cornerstone of many games and applications; it can give the user a sense of playing with something real, even if they’re just looking at pixels on a screen. Some mobile games have become extremely popular just because they came up with a new touch paradigm; a certain game involving birds comes to mind.

We now have better-looking mallets in our air hockey game, but wouldn’t it be nice if we could actually use them? In this chapter, we’re going to start making our program more interactive by adding touch support. We’ll learn how to add 3D intersection tests and collision detection so that we can grab our mallet and drag it ...

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