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

Get OpenGL ES 2 for Android 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.