O'Reilly logo

Mastering LibGDX Game Development by Patrick Hoey

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

Implementing map management with spawn points and a portal system

The next class represented in our top-level class diagram is MapManager, which can be found at core/src/com/packtpub/libgdx/bludbourne/MapManager.java. This class has helper methods for loading the TiledMap maps, as well as methods for accessing the different MapLayer, and MapObject objects in the layers.

MapManager

A class diagram that outlines the different attributes and helper methods is represented by the following diagram (Figure 10):

MapManager

Figure 10

The import classes are as follows:

package com.packtpub.libgdx.bludbourne; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.maps.MapLayer; ...

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