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):
The import classes are as follows:
package com.packtpub.libgdx.bludbourne; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.maps.MapLayer; ...
Get Mastering LibGDX Game Development 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.