Package com.badlogic.gdx.utils

Examples of com.badlogic.gdx.utils.LongArray


        if (tile != null) {
          Element animationElement = tileElement.getChildByName("animation");
          if (animationElement != null) {

            Array<StaticTiledMapTile> staticTiles = new Array<StaticTiledMapTile>();
            LongArray intervals = new LongArray();
            for (Element frameElement: animationElement.getChildrenByName("frame")) {
              staticTiles.add((StaticTiledMapTile) tileset.getTile(firstgid + frameElement.getIntAttribute("tileid")));
              intervals.add(frameElement.getIntAttribute("duration"));
            }

            AnimatedTiledMapTile animatedTile = new AnimatedTiledMapTile(intervals, staticTiles);
            animatedTile.setId(tile.getId());
            animatedTiles.add(animatedTile);
View Full Code Here

TOP

Related Classes of com.badlogic.gdx.utils.LongArray

Copyright © 2018 www.massapicom. 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.