import javax.microedition.lcdui.*; import javax.microedition.lcdui.game.*; public class MapLayer extends TiledLayer { public MapLayer(Image image) { super(4,10,image,20,20); int[] arrayMap={ 1, 1, 1, 1, 1, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 1, 1, 0, 0, 1, 1, 0, 1, 1, 1, 0, 0, 1, 1, 1, 0, 1, 1, 0, 0, 1, 1, 1, 1, 1}; int numberElementArray=0; for(int numberRow=0; numberRow<10; numberRow++) { for(int numberColumn=0; numberColumn<4; numberColumn++) { setCell(numberColumn,numberRow, arrayMap[numberElementArray]); numberElementArray++; } } setPosition(0,0); } }