Chapter 12. Handling Lots of Data with Arrays

In this chapter, we will first get the Bullet Hell project setup and ready to roll with a single bullet whizzing across the screen. Then we will learn about Java arrays which allow us to manipulate a potentially huge amount of data in an organized and efficient manner.

Once we are comfortable handling arrays of data we will see how we can spawn hundreds or thousands of our new Bullet class instances, without breaking a sweat.

The topics in this chapter include:

  • Planning the Bullet Hell game
  • Coding the Bullet Hell engine based on our Pong engine
  • Coding the Bullet class and spawning a bullet
  • Java arrays
  • Spawning thousands of bullets

Let's plan what the final game will be like.

Planning the project

The Bullet Hell ...

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.