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

Time for pickups

There is no fun in the game without any collectibles. For ThrustCopter, we have three different collectibles that are as follows:

  • The star collectible that adds to the score.
  • The fuel collectible that is needed to refill our plane's fuel.
  • The shield collectible that when collected makes our plane invincible for a short time. We will start the game with shield enabled.

Collectibles can be released randomly as game progresses, but fuel and shield need to be time-based. Shield has to be a rare collectible that comes after a longer time. The fuel collectible needs to be released based on the time the plane's fuel takes to completely deplete. We will need to release at least two fuel pickups in that time, thereby giving the player a fair ...

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