sp;    break;                 case 连线方式.二折:                     g.DrawLine(p, x_1, y_1, z1x, z1y);//二折的话三条线 z1的x,y到z2的                     g.DrawLine(p, z1x, z1y, z2x, z2y);//z2的 x,y 直到x2的x,y                     g.DrawLine(p, z2x, z2y, x_2, y_2);                     break;                 default:                     return;//然则返回             }         }           private void 消除(int x, int y)         {             Graphics g = this.pictureBox1.CreateGraphics();             SolidBrush 刷子 = new SolidBrush(Color.Black);//刷子的声明于实例化 参数为颜色             Rectangle 矩形 = new Rectangle(x*边长+边长,y*边长+边长,边长,边长);             //同样需要一个矩形来规定刷子刷什么样子的图形             g.FillRectangle(刷子,矩形);//然后刷子涂满矩形 把小方块全部涂黑 达到消除方块的目的         }           private bool 相同(int x1, int y1, int x2, int y2)         {             if (地图[y1 * 行 + x1].Equals(地图[y2 * 行 + x2]))             {                 return true;             }             else            {                 return false;             }         }           private void 判断胜利()         {      &n
 << 上一页  [21] [22] [23] [24] [25] [26] [27] [28] [29] [30]  ... 下一页  >>