Summary

In this chapter, we learned how to implement the player character, platforms, and collectible items in conjunction with a basic yet functional physics simulation and collision detection code. Nonetheless, it should be mentioned that the physics simulation as well as the collision detection code both have their limitations. However, as long as our original requirements of the game do not change, we will be just fine.

Furthermore, we have completed the level loader and discussed how jumps for our player character work. Two conditions for losing extra lives and reaching game over have been added. The camera's position has been constrained in a way that it will never follow the player character below the height of the water. Finally, we have ...

Get Learning Libgdx Game Development 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.