map.java
来自「又是一款j2me 游戏」· Java 代码 · 共 2,129 行 · 第 1/5 页
JAVA
2,129 行
playerLocX = pLocX;
playerLocY = pLocY;
room.Initial(roomID, roomData, floorData);
break;
}
case 14: // '\016'
{
int floorData[][] = {
{
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1
}, {
20, 0, 0, 0, 0, 0, 0, 0, 20, -1
}, {
20, 0, 0, 0, 0, 0, 0, 0, 20, -1
}, {
20, 20, 14, 14, 0, 0, 0, 0, 20, -1
}, {
20, 20, 14, 110, 0, 0, 0, 0, 20, -1
}, {
20, 20, 14, 14, 0, 0, 0, 0, 0, 110
}, {
20, 0, 5, 5, 0, 0, 0, 0, 20, -1
}, {
20, 20, 14, 14, 0, 0, 0, 0, 20, -1
}, {
20, 0, 0, 0, 0, 0, 0, 0, 20, -1
}, {
20, 0, 0, 0, 0, 0, 0, 0, 20, -1
}, {
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1
}
};
int roomData[][] = {
{
23, 22, 22, 22, 22, 22, 22, 22, 24, -1
}, {
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1
}, {
-1, 23, 22, 22, 22, 22, 24, -1, -1, -1
}, {
-1, -1, -1, 96, 82, 82, 55, -1, -1, -1
}, {
-1, -1, -1, 50, -1, -1, 55, -1, 24, -1
}, {
-1, 24, -1, -1, -1, -1, 55, -1, 50, -1
}, {
-1, -1, -1, -1, -1, -1, 55, -1, 134, -1
}, {
-1, 134, -1, -1, 82, 82, 55, -1, -1, -1
}, {
-1, 133, 132, 132, 132, 132, 134, -1, -1, -1
}, {
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1
}, {
133, 132, 132, 132, 132, 132, 132, 132, 134, -1
}
};
int rLinkX[] = {
4, 5
};
int rLinkY[] = {
3, 9
};
int rLinkID[] = {
16, 1
};
int pLocX[] = {
127, 67
};
int pLocY[] = {
273, 177
};
roomLinkX = rLinkX;
roomLinkY = rLinkY;
roomLinkID = rLinkID;
playerLocX = pLocX;
playerLocY = pLocY;
room.Initial(roomID, roomData, floorData);
break;
}
case 15: // '\017'
{
int floorData[][] = {
{
-1, -1, -1, 10, 14, 13, -1, 10, 14, 13,
-1
}, {
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1
}, {
10, 14, 13, -1, 10, 10, 10, 13, -1, -1,
-1
}, {
-1, 19, 19, 10, 10, 10, 10, 10, 13, 19,
10
}, {
19, 7, 7, 10, 10, 10, 10, 120, 7, 7,
120
}, {
-1, 19, 19, 10, 10, 10, 10, 10, 13, 19,
10
}, {
10, 14, 13, -1, 10, 10, 10, 13, -1, -1,
-1
}, {
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1
}, {
-1, -1, -1, 10, 14, 13, -1, 10, 14, 13,
-1
}
};
int roomData[][] = {
{
-1, -1, -1, 82, -1, -1, -1, 82, -1, -1,
-1
}, {
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1
}, {
82, -1, -1, 36, 145, 145, 147, -1, -1, -1,
-1
}, {
-1, -1, 36, 145, -1, -1, -1, 147, -1, -1,
82
}, {
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1
}, {
-1, -1, 36, 35, -1, -1, -1, 37, -1, -1,
82
}, {
82, -1, -1, 36, 35, 35, 37, -1, -1, -1,
-1
}, {
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1
}, {
-1, -1, -1, 82, -1, -1, -1, 82, -1, -1,
-1
}
};
int rLinkX[] = {
4
};
int rLinkY[] = {
10
};
int rLinkID[] = {
13
};
int pLocX[] = {
97
};
int pLocY[] = {
57
};
roomLinkX = rLinkX;
roomLinkY = rLinkY;
roomLinkID = rLinkID;
playerLocX = pLocX;
playerLocY = pLocY;
room.Initial(roomID, roomData, floorData);
break;
}
case 16: // '\020'
{
int floorData[][] = {
{
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1
}, {
-1, -1, 21, 0, 0, 0, 0, 20, -1, -1,
-1
}, {
-1, 21, 0, 4, 4, 4, 4, 20, -1, -1,
-1
}, {
20, 6, 5, 4, 4, 4, 4, 20, -1, -1,
-1
}, {
20, 6, 5, 4, 4, 4, 4, 110, 0, 0,
110
}, {
20, 6, 5, 4, 4, 4, 4, 20, -1, -1,
-1
}, {
-1, 131, 0, 4, 4, 4, 4, 20, -1, -1,
-1
}, {
-1, -1, 131, 0, 0, 0, 0, 20, -1, -1,
-1
}, {
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1
}
};
int roomData[][] = {
{
-1, -1, 23, 22, 22, 22, 22, 24, -1, -1,
-1
}, {
-1, 23, 89, -1, -1, -1, -1, -1, -1, -1,
-1
}, {
22, 89, -1, -1, -1, -1, -1, -1, -1, -1,
-1
}, {
89, -1, -1, -1, -1, -1, -1, 22, 22, 22,
24
}, {
89, -1, -1, -1, -1, -1, -1, 54, -1, -1,
-1
}, {
89, -1, -1, -1, -1, -1, -1, 132, 132, 132,
134
}, {
132, 89, -1, -1, -1, -1, -1, -1, -1, -1,
-1
}, {
-1, 133, 89, -1, -1, -1, -1, -1, -1, -1,
-1
}, {
-1, -1, 133, 132, 132, 132, 132, 134, -1, -1,
-1
}
};
int rLinkX[] = {
4
};
int rLinkY[] = {
10
};
int rLinkID[] = {
14
};
int pLocX[] = {
127
};
int pLocY[] = {
117
};
roomLinkX = rLinkX;
roomLinkY = rLinkY;
roomLinkID = rLinkID;
playerLocX = pLocX;
playerLocY = pLocY;
room.Initial(roomID, roomData, floorData);
break;
}
case 17: // '\021'
{
int floorData[][] = {
{
11, 11, 11, 11, 11, 1, 1, 30, -1, -1,
-1, -1, -1
}, {
11, 11, 11, 11, 11, 2, 1, 30, -1, -1,
-1, -1, -1
}, {
11, 11, 11, 11, 11, 2, 1, 31, -1, -1,
-1, 31, -1
}, {
11, 11, 4, 4, 4, 2, 1, 112, 1, 2,
2, 112, -1
}, {
11, 11, 4, 12, 11, 2, 1, 30, -1, -1,
-1, 141, -1
}, {
11, 11, 4, 12, 11, 2, 1, 30, -1, -1,
-1, -1, -1
}, {
11, 11, 4, 12, 11, 1, 2, 30, -1, -1,
-1, -1, -1
}, {
11, 11, 11, 11, 11, 2, 1, 30, -1, -1,
-1, -1, -1
}, {
11, 11, 11, 11, 11, 2, 1, 30, -1, -1,
-1, -1, -1
}, {
11, 11, 11, 11, 11, 1, 2, 30, -1, -1,
-1, -1, -1
}
};
int roomData[][] = {
{
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1
}, {
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, 32, 32
}, {
-1, -1, -1, -1, -1, -1, -1, 32, 32, 32,
32, 47, 44
}, {
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, 48, 45
}, {
-1, -1, -1, -1, -1, -1, -1, 142, 142, 142,
142, 157, 154
}, {
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1
}, {
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1
}, {
-1, -1, 85, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1
}, {
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1
}, {
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1
}
};
int rLinkX[] = {
2
};
int rLinkY[] = {
11
};
int rLinkID[] = {
12
};
int pLocX[] = {
67
};
int pLocY[] = {
27
};
roomLinkX = rLinkX;
roomLinkY = rLinkY;
roomLinkID = rLinkID;
playerLocX = pLocX;
playerLocY = pLocY;
room.Initial(roomID, roomData, floorData);
break;
}
default:
{
int floorData[][] = {
{
-1
}
};
int roomData[][] = {
{
-1
}
};
room.Initial(roomID, roomData, floorData);
break;
}
}
}
public void SetLoadMapOk(boolean ok)
{
room.SetLoadMapOk(ok);
}
public boolean IsLoadMapOk()
{
return room.IsLoadOk();
}
public static int GetMapId()
{
return mapId;
}
public int GetNextMapId()
{
return nextMapId;
}
public int GetIniPlayerLocX()
{
return initPLocX;
}
public int GetIniPlayerLocY()
{
return initPLocY;
}
public int GetRoomSizeX()
{
return room.GetWidth();
}
public int GetRoomSizeY()
{
return room.GetHeight();
}
public int[][] GetAllItemId()
{
return itemID;
}
public void SetAllItemId(int temp[][])
{
itemID = temp;
}
public int[][] GetAllDoorKeyId()
{
return doorKeyID;
}
public void SetAllDoorKeyId(int temp[][])
{
doorKeyID = temp;
}
public int[][]
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?