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

Tile-based level design

Let's learn something that is not related to our game. Some kinds of games can be easily implemented using a tile-based approach, for example, 2D platformers, top-down scrollers, side scrollers, hexagonal tile games, and isometric games. In these games, the levels are often created using grids of graphic blocks called tiles. Let's learn how to create such a level and load it into LibGDX.

Using Tiled

Tiled is a free application that can be used to create tile-based levels, and it can be downloaded from www.mapeditor.org. Tiled allows us to design levels easily using just a few mouse clicks. First, we need to create a new map by specifying the tile height, tile width, rows, and columns that is shown in the following screenshot: ...

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