本文整理汇总了Java中com.badlogic.gdx.maps.tiled.TiledMapRenderer类的典型用法代码示例。如果您正苦于以下问题:Java TiledMapRenderer类的具体用法?Java TiledMapRenderer怎么用?Java TiledMapRenderer使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
TiledMapRenderer类属于com.badlogic.gdx.maps.tiled包,在下文中一共展示了TiledMapRenderer类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: GameMap
import com.badlogic.gdx.maps.tiled.TiledMapRenderer; //导入依赖的package包/类
public GameMap(final OrthographicCamera camera, final TiledMap map,
final TiledMapRenderer mapRenderer, final Location parentLocation) {
this.camera = camera;
this.map = map;
this.mapRenderer = mapRenderer;
this.parentLocation = parentLocation;
mapLayers = new TreeMap<>();
entities = new LinkedList<>();
triggers = new LinkedList<>();
tileTriggers = new HashMap<>();
actionQueue = new LinkedList<>();
animations = new LinkedList<>();
mapEffects = new LinkedList<>();
namedActors = new HashMap<>();
doors = new HashMap<>();
buildMapLayers(map);
graphNodeIndex = new TileCoordinate[getNodeCount()];
}
示例2: loadMap
import com.badlogic.gdx.maps.tiled.TiledMapRenderer; //导入依赖的package包/类
protected final GameMap loadMap(final GraphicsService graphicsService, final AssetManager assetManager,
final String mapPath, final Location parentLocation) {
if (!assetManager.isLoaded(mapPath, TiledMap.class)) {
assetManager.load(mapPath, TiledMap.class);
assetManager.finishLoading();
}
TiledMap tiledMap = assetManager.get(mapPath);
TiledMapRenderer mapRenderer = graphicsService.getTileMapRenderer(tiledMap);
return new GameMap(graphicsService.getCamera(), tiledMap, mapRenderer, parentLocation);
}
示例3: MapLayer
import com.badlogic.gdx.maps.tiled.TiledMapRenderer; //导入依赖的package包/类
public MapLayer(final int layerIndex, final TiledMapRenderer mapRenderer) {
this.layerIndex = layerIndex;
this.mapRenderer = mapRenderer;
}
示例4: getTileMapRenderer
import com.badlogic.gdx.maps.tiled.TiledMapRenderer; //导入依赖的package包/类
@Override
public TiledMapRenderer getTileMapRenderer(final TiledMap tiledMap) {
return new OrthogonalTiledMapRenderer(tiledMap, spriteBatch);
}
示例5: getMapRenderer
import com.badlogic.gdx.maps.tiled.TiledMapRenderer; //导入依赖的package包/类
public TiledMapRenderer getMapRenderer() {
return mapRenderer;
}
示例6: setMapRenderer
import com.badlogic.gdx.maps.tiled.TiledMapRenderer; //导入依赖的package包/类
public void setMapRenderer(TiledMapRenderer mapRenderer) {
this.mapRenderer = mapRenderer;
}
示例7: getTileMapRenderer
import com.badlogic.gdx.maps.tiled.TiledMapRenderer; //导入依赖的package包/类
TiledMapRenderer getTileMapRenderer(TiledMap tiledMap);