O'Reilly logo

LibGDX Game Development Essentials by Juwal Bose

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 3. Thou Shall Not Pass!

Currently, we have our animated plane moving across a seamlessly scrolling sky backdrop. There is no fun in seeing our plane crash-land each time we run the game. In this chapter, we will add player input to control the plane so the player could try to keep the plane from crashing. To make things more interesting, we will add some sound effects and a music loop. The name of the chapter also points to the fact that we will add many obstacles that the plane will need to dodge in order to avoid a crash. We will explore the following in this chapter:

  • Polling various user input
  • Adding mouse and touch-based user control
  • Learning about input processors
  • Adding obstacles for our plane to dodge
  • Adding game logic to control our ...

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