Skip to Content
Learning Java by Building Android Games - Third Edition
book

Learning Java by Building Android Games - Third Edition

by John Horton
March 2021
Beginner to intermediate
686 pages
13h 6m
English
Packt Publishing
Content preview from Learning Java by Building Android Games - Third Edition

Chapter 12: Handling Lots of Data with Arrays

In this chapter, we will first get the Bullet Hell project set up 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 are as follows:

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

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learning Java by Building Android Games - Second Edition

Learning Java by Building Android Games - Second Edition

John Horton
Programming Android with Kotlin

Programming Android with Kotlin

Pierre-Olivier Laurence, Amanda Hinchman-Dominguez, Mike Dunn, G. Blake Meike

Publisher Resources

ISBN: 9781800565869Supplemental Content