import java.io.*; import javax.microedition.lcdui.Image; import javax.microedition.lcdui.game.*; public class Map{ public static TiledLayer loadTiledLayer(DataInputStream dis) throws IOException { int columns = dis.readInt(); int rows = dis.readInt(); Image image = Image.creteImage(dis.readUTF()); int tileWidth = dis.readInt(); int tileHeight = dis.readInt(); TiledLayer tl = new TiledLayer(columns,rows,image,tileWidth,tileHeight); for(int i=0;i