- package Draw;
- import javax.microedition.lcdui.game.*;
- import javax.microedition.lcdui.*;
- public class MapBack extends TiledLayer{
- public MapBack(int xs,int ys,Image img,int width,int height,int maps[]) {
- super(xs,ys,img,width,height);
- Init(xs,maps);
- }
- public void Init(int cellx,int maps[]){
- for(int i=0;i<maps.length;i++){
- setCell(i%cellx,i/cellx,maps[i]);
- }
- }
- }