当前位置: 首页>>代码示例>>Java>>正文


Java TiledMapRenderer类代码示例

本文整理汇总了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()];
}
 
开发者ID:JayStGelais,项目名称:jrpg-engine,代码行数:19,代码来源:GameMap.java

示例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);
}
 
开发者ID:JayStGelais,项目名称:jrpg-engine,代码行数:11,代码来源:MapDefinition.java

示例3: MapLayer

import com.badlogic.gdx.maps.tiled.TiledMapRenderer; //导入依赖的package包/类
public MapLayer(final int layerIndex, final TiledMapRenderer mapRenderer) {
    this.layerIndex = layerIndex;
    this.mapRenderer = mapRenderer;
}
 
开发者ID:JayStGelais,项目名称:jrpg-engine,代码行数:5,代码来源:MapLayer.java

示例4: getTileMapRenderer

import com.badlogic.gdx.maps.tiled.TiledMapRenderer; //导入依赖的package包/类
@Override
public TiledMapRenderer getTileMapRenderer(final TiledMap tiledMap) {
    return new OrthogonalTiledMapRenderer(tiledMap, spriteBatch);
}
 
开发者ID:JayStGelais,项目名称:jrpg-engine,代码行数:5,代码来源:GraphicsServiceImpl.java

示例5: getMapRenderer

import com.badlogic.gdx.maps.tiled.TiledMapRenderer; //导入依赖的package包/类
public TiledMapRenderer getMapRenderer() {
	return mapRenderer;
}
 
开发者ID:Corosauce,项目名称:AI_TestBed_v3,代码行数:4,代码来源:Level.java

示例6: setMapRenderer

import com.badlogic.gdx.maps.tiled.TiledMapRenderer; //导入依赖的package包/类
public void setMapRenderer(TiledMapRenderer mapRenderer) {
	this.mapRenderer = mapRenderer;
}
 
开发者ID:Corosauce,项目名称:AI_TestBed_v3,代码行数:4,代码来源:Level.java

示例7: getTileMapRenderer

import com.badlogic.gdx.maps.tiled.TiledMapRenderer; //导入依赖的package包/类
TiledMapRenderer getTileMapRenderer(TiledMap tiledMap); 
开发者ID:JayStGelais,项目名称:jrpg-engine,代码行数:2,代码来源:GraphicsService.java


注:本文中的com.badlogic.gdx.maps.tiled.TiledMapRenderer类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。