Android : how can we create tiled layer in android?

on Tuesday, October 14, 2014


How can we implement the tiled layer in android? I need an example for this.


tileSet = new TiledMapTileSet(); tileSet.setName("bubblr"); int z = 0; for (int i = 0; i < 70; i++) {

TextureRegion tileText = imageAtlasGame.findRegion("tile" + i); if (tileText != null) { tileSet.putTile(z, new StaticTiledMapTile(tileText)); z++; } }
Thanks


0 comments:

Post a Comment