day6 游戏主线的地图设计
package game;
public class Checkpoint {
public static int[][] getmap(int op){
if(op==1)return mp1;
if(op==2)return mp2;
if(op==3)return mp3;
else return mp4;
}
public static int getx(int op) {
if(op==1)return 10;
if(op==2)return 5;
if(op==3)return 5;
else return 7;
}
public static int gety(int op) {
if(op==1)return 10;
if(op==2)return 6;
if(op==3)return 5;
return 9;
}
public static int getnum(int op) {
if(op==1)return 4;
if(op==2)return 3;
if(op==3)return 3;
else return 4;
}
static int mp1[][]=new int[][]{
{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
{0,0,0,0,0,0,0,0,0,2,2,2,0,0,0,0,0,0,0,0},
{0,0,0,0,0,0,0,0,0,2,4,2,0,0,0,0,0,0,0,0},
{0,0,0,0,0,0,0,0,0,2,0,2,0,0,0,0,0,0,0,0},
{0,0,0,0,0,0,0,0,0,2,0,2,0,0,0,0,0,0,0,0},
{0,0,0,0,2,2,2,2,2,2,0,2,0,0,0,0,0,0,0,0},
{0,0,0,0,2,4,0,0,0,1,1,2,2,2,2,2,0,0,0,0},
{0,0,0,0,2,2,2,2,2,0,5,1,0,0,4,2,0,0,0,0},
{0,0,0,0,0,0,0,0,2,1,2,2,2,2,2,2,0,0,0,0},
{0,0,0,0,0,0,0,0,2,0,2,0,0,0,0,0,0,0,0,0},
{0,0,0,0,0,0,0,0,2,0,2,0,0,0,0,0,0,0,0,0},
{0,0,0,0,0,0,0,0,2,4,2,0,0,0,0,0,0,0,0,0},
{0,0,0,0,0,0,0,0,2,2,2,0,0,0,0,0,0,0,0,0},
{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
{0,0,0,0,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