O'Reilly logo

Learning Libgdx Game Development by Andreas Oehlke

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 11. Advanced Programming Techniques

In this chapter we will take a look at Box2D, a physics engine for simulating realistic-looking physics of the objects in 2D space. After we have covered the basics of how to use Box2D, we will move on and create a little physics simulation that is going to be triggered at the end of the level. For this to work, we will also need to add a new level object that represents the level's end.

After that, we will look into the topic of shader programs. Shaders, in general, are simple programs that are going to be executed on the Graphics Processing Unit (GPU). We will create our own shader program consisting of a vertex and a fragment shader to achieve a simple monochrome filter effect.

Physics engines, such ...

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