Examples of TmxMapLoader


Examples of com.badlogic.gdx.maps.tiled.TmxMapLoader

   */
  public void loadCurrentMap() {

        TiledMapManager.setLevelManager(this);

    map = new TmxMapLoader().load(getCurrentLevelPath());
    TiledMapManager.collisionLayer = (TiledMapTileLayer) map.getLayers().get("terrain");
    TiledMapManager.objectLayer = map.getLayers().get("objects");
   
    loadAnimateTiles();
    loadEnemies();
View Full Code Here

Examples of com.badlogic.gdx.maps.tiled.TmxMapLoader

        manager.finishLoading();
    }

    public void loadGDXMaps() {

        manager.setLoader(TiledMap.class, new TmxMapLoader(new InternalFileHandleResolver()));

        File dir = new File(Detonator.INSTANCE.currentModule.dirName + "maps");
        String[] fileList = dir.list();

        if (fileList == null) {
View Full Code Here

Examples of com.badlogic.gdx.maps.tiled.TmxMapLoader

        return (int) camera.viewportHeight;
    }

    @Override
    public void loadTiledMap(String fromFile) {
        TiledMap loadedMap = new TmxMapLoader().load(Detonator.INSTANCE.gameDataDir + "/maps/" + fromFile);
        map = new TiledMapGDX(loadedMap);
        map.setCamera(camera);


        maps.add(this);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.