O'Reilly logo

Pro Android Games by Vladimir Silva

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 4. Java Games Continued: Fun with Polygons

In this chapter, we take things to the next level with an arcade classic: Asteroids. The goal of this chapter is to illustrate a polygon-based game (Asteroids), as opposed to the previous chapter's sprite-based game (Space Blaster). Using polygons presents a new set of challenges due to the limited polygon capabilities of Android, as you'll see in the next section. Nevertheless, Asteroids is a relatively simple game that takes advantage of the high portability of the Java language by reusing code from the standard Java SE Abstract Windowing Toolkit (AWT). Let's get started.

About the Chapter Layout

This chapter has a different layout than previous chapters, as it doesn't start with a description ...

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