资源说明:package Level;
import Handler.Handler;
import Main.Main;
import Midlet.Midlet;
import Pic.GifDecoder;
import java.io.IOException;
import java.util.Random;
import javax.microedition.lcdui.Display;
import javax.microedition.lcdui.Image;
import javax.microedition.lcdui.game.GameCanvas;
import javax.microedition.lcdui.game.LayerManager;
import javax.microedition.lcdui.game.TiledLayer;
public class Level3 extends GameCanvas implements Runnable{
public boolean end=false;
private int state=0;
private LayerManager LM;
private TiledLayer TL;
private TiledLayer Mess;
private TiledLayer Board;
private Image pintu;
private int screen=1; //三幅图的切换显示
/*1为打乱的图片,2为原图,3为拼凑板*/
private boolean moving; //只是放置
private int move=0; //移动的图块序号
private int origin=0; //拼图板的原始图块序号
private boolean replacing; //交换
private int r11,r12;
private int r21,r22;
private int count=0; //拼图吻合的数目
private int[][]temp; //记录随机混乱的数组
private int[][]dst; //拼图数据
private int x1,y1; //随机图中的移动左上坐标
private int i1,j1; //相对坐标
private int x2,y2; //版图中的移动左上坐标
private int i2,j2; //相对坐标
private int x,y; //作为移动的统一处理
private int frameGif=0;
private static int X=4;
private static int Y=8;
public Level3(){
super(false);
setFullScreenMode(true);
Display.getDisplay(Midlet.instance).setCurrent(this);
Main.instance.pause=true;
Main.g=getGraphics();
new Thread(this).start();
}
本源码包内暂不包含可直接显示的源代码文件,请下载源码包。