Summary

In this chapter, we covered the basics of the Box2D rigid body physics engine, and thereafter applied the newly gained knowledge, including all the individual parts (rigid body, body type, shape, fixture, and world) by creating a believable physics simulation of raining carrots. Also, two new game objects were added, which represented the carrot for physics simulations and a huge golden carrot statue symbolizing a level's goal or exit.

Then, we went down the graphics pipeline, more precisely the Programmable Pipeline of OpenGL (ES) 2.0 to explore the use of shaders. We created our own shader program to apply a monochrome filter effect of arbitrary intensity through a uniform variable that can be passed to the shader program at runtime in ...

Get Learning LibGDX Game Development - Second Edition 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.