O'Reilly logo

Beginning Android Tablet Games Programming by Jeremy Kerfs

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

Adding Collision Detection and Event Handling

There is possibly nothing worse than working incredibly hard on a coding task and then realizing it was unnecessary. To avoid this issue, I spend a good amount of time diagramming and figuring out how the program will work and what it will look like. Figure 6-3 is a chart that shows what needs to be done and how the game loop must work.

If you’re working with a team on your app, it’s even more critical for everyone to share a vision for the finished project. This is when you may want to create concept art so that everyone has something to look at as they work on the code or assets.

images

Figure 6-3. ...

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