Package com.badlogic.gdx.graphics.g2d

Examples of com.badlogic.gdx.graphics.g2d.TextureRegion.flip()


      for (int y = margin; y <= stopHeight; y += tileheight + spacing) {
        for (int x = margin; x <= stopWidth; x += tilewidth + spacing) {
          TextureRegion tileRegion = new TextureRegion(texture, x, y, tilewidth, tileheight);
          if (!yUp) {
            tileRegion.flip(false, true);
          }
          TiledMapTile tile = new StaticTiledMapTile(tileRegion);
          tile.setId(id);
          tileset.putTile(id++, tile);
        }
View Full Code Here


      for (int y = margin; y <= stopHeight; y += tileheight + spacing) {
        for (int x = margin; x <= stopWidth; x += tilewidth + spacing) {
          TextureRegion tileRegion = new TextureRegion(texture, x, y, tilewidth, tileheight);
          if (!yUp) {
            tileRegion.flip(false, true);
          }
          TiledMapTile tile = new StaticTiledMapTile(tileRegion);
          tile.setId(id);
          tileset.putTile(id++, tile);
        }
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.