O'Reilly logo

LibGDX Game Development By Example by James Cook

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 9. Even Angrier Birds!

Welcome to this chapter! I hope you enjoyed the previous chapter and are making your own games resembling Angry Birds. I also hope you used everything you learned in the previous chapters to really make it into a fully formed game.

In this chapter, we will cover a technique that will hopefully help you when you find yourself creating lots of instances of a certain type of object that are generally short-lived. We will look at object pooling and how LibGDX can provide the tools to help us use them. In this chapter, we'll take a look at the following topics:

  • The how, what, and why of object pools
  • Hey, look at all these acorns!

The how, what, and why of object pools

Object pooling is the principle of reusing inactive or ...

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