Search in sources :

Example 11 with OrthogonalTiledMapRenderer

use of com.badlogic.gdx.maps.tiled.renderers.OrthogonalTiledMapRenderer in project Entitas-Java by Rubentxu.

the class TiledRendererSystem method initialize.

@Override
public void initialize() {
    this.cam = context.getCamera().camera;
    Tiled tiled = context.getTiled();
    TiledMap tiledMap = assetsManager.getMap(tiled.tileMapName);
    this.tiledRenderer = new OrthogonalTiledMapRenderer(tiledMap, tiled.unitScale);
}
Also used : OrthogonalTiledMapRenderer(com.badlogic.gdx.maps.tiled.renderers.OrthogonalTiledMapRenderer) Tiled(ilargia.egdx.logicbricks.component.scene.Tiled) TiledMap(com.badlogic.gdx.maps.tiled.TiledMap)

Aggregations

OrthogonalTiledMapRenderer (com.badlogic.gdx.maps.tiled.renderers.OrthogonalTiledMapRenderer)11 OrthographicCamera (com.badlogic.gdx.graphics.OrthographicCamera)7 BitmapFont (com.badlogic.gdx.graphics.g2d.BitmapFont)6 SpriteBatch (com.badlogic.gdx.graphics.g2d.SpriteBatch)6 OrthoCamController (com.badlogic.gdx.tests.utils.OrthoCamController)6 InternalFileHandleResolver (com.badlogic.gdx.assets.loaders.resolvers.InternalFileHandleResolver)3 TmxMapLoader (com.badlogic.gdx.maps.tiled.TmxMapLoader)3 AssetManager (com.badlogic.gdx.assets.AssetManager)2 Texture (com.badlogic.gdx.graphics.Texture)2 TextureRegion (com.badlogic.gdx.graphics.g2d.TextureRegion)2 ShapeRenderer (com.badlogic.gdx.graphics.glutils.ShapeRenderer)2 AtlasTmxMapLoader (com.badlogic.gdx.maps.tiled.AtlasTmxMapLoader)2 TideMapLoader (com.badlogic.gdx.maps.tiled.TideMapLoader)2 TiledMap (com.badlogic.gdx.maps.tiled.TiledMap)2 Animation (com.badlogic.gdx.graphics.g2d.Animation)1 MapLayers (com.badlogic.gdx.maps.MapLayers)1 TiledMapTileLayer (com.badlogic.gdx.maps.tiled.TiledMapTileLayer)1 Cell (com.badlogic.gdx.maps.tiled.TiledMapTileLayer.Cell)1 HexagonalTiledMapRenderer (com.badlogic.gdx.maps.tiled.renderers.HexagonalTiledMapRenderer)1 IsometricStaggeredTiledMapRenderer (com.badlogic.gdx.maps.tiled.renderers.IsometricStaggeredTiledMapRenderer)1