import java.io.IOException; import javax.microedition.lcdui.*; import javax.microedition.lcdui.game.*; public class MyGameCanvas extends GameCanvas implements Runnable{ private TiledLayer fonPole; private LayerManager lm; boolean z; public MyGameCanvas() throws IOException { super(true); fonPole = Fon; LayerManager lm = new LayerManager(); lm.append(fonPole); } public void start() { z = true; Thread t = new Thread(this); t.start(); } public TiledLayer Font() throws IOException { Image im = Image.createImage("img/fon/f.png"); fonPole = new TiledLayer(10,10,im,15,15); int[] pole = {5,5,5,5,5,5,5,5,5,5,1,5,5,5,5,5,1,5,5,5,1,1,5,5,5,5,1,5,5,5,1,5/5,5,1,11,1,1,1,1,5,5,1,11,1,1,1,1,1,1,1,1,6,6,1,1,1,1,1,1,6,6,6,2,4,4,4,4,4,3,3,3,3,2,2,2,4,4,4,3,3,3,3,2,4,4,4,3,3,3}; for(int i=0;i