⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 map.java

📁 一个j2me的小游戏
💻 JAVA
📖 第 1 页 / 共 5 页
字号:
                    48, 53, -1, -1, -1, -1, -1, -1, -1, -1, 
                    -1, -1, -1, -1, -1, -1
                }, {
                    48, -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, 97, -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[] = {
                3, 2
            };
            int rLinkY[] = {
                1, 13
            };
            int rLinkID[] = {
                15, 12
            };
            int pLocX[] = {
                127, 157
            };
            int pLocY[] = {
                273, 123
            };
            roomLinkX = rLinkX;
            roomLinkY = rLinkY;
            roomLinkID = rLinkID;
            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 GetI

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -