示例#1
0
    private void CreateHorizontalTunnel(int x1, int x2, int y)
    {
        int min = Mathf.Min(x1, x2);
        int max = Mathf.Max(x1, x2);

        for (int x = min; x <= max; x++)
        {
            map.SetTileToFloor(x, y);
        }
    }
示例#2
0
    public Room BuildRoom()
    {
        for (int x = (int)rect.xMin + 1; x < (int)rect.xMax; x++)
        {
            for (int y = (int)rect.yMin + 1; y < (int)rect.yMax; y++)
            {
                map.SetTileToFloor(x, y);
            }
        }

        return(this);
    }