O'Reilly logo

LibGDX Cross-Platform Development Blueprints by Indraneel Potnis

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 7. Collision Detection

In this chapter, we will learn how to integrate Bob and other game objects with the Tiled map that we created. We will also learn how to control the camera and follow the player around. We will also learn how to add realistic physics and detect collisions between obstacles from the map.

In this chapter, we will cover the following topics:

  • Integrating game objects
  • Physics and collision

Scaling objects and adding a secondary camera

In this section, we will learn how to integrate the game objects with the Tiled map and camera control.

Integrating Bob

In the previous chapter, we rendered the map but other game objects, such as Bob, the paddles, and the background were out of picture. Let's first try to integrate them with the ...

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