Summary

We have learned a lot in this chapter as well as put much of it to practical use. We have studied and implemented if and else blocks. We have also learned about switch, case, and break which we will use in future projects.

Now that Sub' Hunter is complete we can turn to a slightly more advanced game. Sub' Hunter was slightly static compared to modern games and it was also very quiet. In the next chapter, we will start an animated Pong game complete with beeps. Before we start on the project, however, we will take a much deeper look at classes and object-oriented programming.

Get Learning Java by Building Android Games - Second Edition 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.