C#游戏开发之实现华容道游戏

.NET
307
0
0
2023-07-15
标签   C#
目录
  • 实践过程
  • 效果
  • 代码

实践过程

效果

代码

/**
 * https://zhima.blog.csdn.net/
 */
public partial class Form : Form
{
public Form()
{
    InitializeComponent();
}

private Panel pl;//记录选中的控件ID

private void Form_Load(object sender, EventArgs e)
{
    //初始化时设置各个位置的可用状态
    PlState[, 0] = PlState[0, 1] = PlState[0, 2] = PlState[0, 3] =
        PlState[, 0] = PlState[1, 1] = PlState[1, 2] = PlState[1, 3] =
        PlState[, 0] = PlState[2, 1] = PlState[2, 2] = PlState[2, 3] =
        PlState[, 0] = PlState[3, 1] = PlState[3, 2] = PlState[3, 3] =
        PlState[, 0] = PlState[4, 3] = true;
}

//初始化各人物方格位置
private void button_Click(object sender, EventArgs e)
{
    //设置各方格的初始图片
    panel.BackgroundImage = (Image)(Properties.Resources._003);
    panel.BackgroundImage = (Image)(Properties.Resources._001);
    panel.BackgroundImage = (Image)(Properties.Resources._004);
    panel.BackgroundImage = (Image)(Properties.Resources._005);
    panel.BackgroundImage = (Image)(Properties.Resources._002);
    panel.BackgroundImage = (Image)(Properties.Resources._006);
    panel.BackgroundImage = (Image)(Properties.Resources._007);
    panel.BackgroundImage = (Image)(Properties.Resources._008);
    panel.BackgroundImage = (Image)(Properties.Resources._009);
    panel.BackgroundImage = (Image)(Properties.Resources._010);
    //设置各方格的初始位置
    panel.Location = position[0, 0];
    panel.Location = position[0, 1];
    panel.Location = position[0, 3];
    panel.Location = position[2, 0];
    panel.Location = position[2, 1];
    panel.Location = position[2, 3];
    panel.Location = position[3, 1];
    panel.Location = position[3, 2];
    panel.Location = position[4, 0];
    panel.Location = position[4, 3];
    PlState[, 0] = PlState[4, 3] = true;   //设置最后一行的首尾位置不可用
    PlState[, 1] = PlState[4, 2] = false;  //设置最后一行的中间两个位置可用
}

#region 赵云
private void panel_Click(object sender, EventArgs e)
{
    //设置各方格图片
    panel.BackgroundImage = (Image)(Properties.Resources.a3);
    panel.BackgroundImage = (Image)(Properties.Resources._001);
    panel.BackgroundImage = (Image)(Properties.Resources._004);
    panel.BackgroundImage = (Image)(Properties.Resources._005);
    panel.BackgroundImage = (Image)(Properties.Resources._002);
    panel.BackgroundImage = (Image)(Properties.Resources._006);
    panel.BackgroundImage = (Image)(Properties.Resources._007);
    panel.BackgroundImage = (Image)(Properties.Resources._008);
    panel.BackgroundImage = (Image)(Properties.Resources._009);
    panel.BackgroundImage = (Image)(Properties.Resources._010);
    PStyle = PStyles.PV;//记录方格样式
    pl = panel;         //记录选中的控件ID
    PosX = intX(panel); //记录选中控件在坐标数组中的列索引
    PosY = intY(panel); //记录选中控件在坐标数组中的行索引
}
#endregion

#region 曹操
private void panel_Click(object sender, EventArgs e)
{
    panel.BackgroundImage = (Image)(Properties.Resources._003);
    panel.BackgroundImage = (Image)(Properties.Resources.a1);
    panel.BackgroundImage = (Image)(Properties.Resources._004);
    panel.BackgroundImage = (Image)(Properties.Resources._005);
    panel.BackgroundImage = (Image)(Properties.Resources._002);
    panel.BackgroundImage = (Image)(Properties.Resources._006);
    panel.BackgroundImage = (Image)(Properties.Resources._007);
    panel.BackgroundImage = (Image)(Properties.Resources._008);
    panel.BackgroundImage = (Image)(Properties.Resources._009);
    panel.BackgroundImage = (Image)(Properties.Resources._010);
    PStyle = PStyles.P;
    pl = panel;
    PosX = intX(panel);
    PosY = intY(panel);
}
#endregion

#region 张飞
private void panel_Click(object sender, EventArgs e)
{
    panel.BackgroundImage = (Image)(Properties.Resources._003);
    panel.BackgroundImage = (Image)(Properties.Resources._001);
    panel.BackgroundImage = (Image)(Properties.Resources.a4);
    panel.BackgroundImage = (Image)(Properties.Resources._005);
    panel.BackgroundImage = (Image)(Properties.Resources._002);
    panel.BackgroundImage = (Image)(Properties.Resources._006);
    panel.BackgroundImage = (Image)(Properties.Resources._007);
    panel.BackgroundImage = (Image)(Properties.Resources._008);
    panel.BackgroundImage = (Image)(Properties.Resources._009);
    panel.BackgroundImage = (Image)(Properties.Resources._010);
    PStyle = PStyles.PV;
    pl = panel;
    PosX = intX(panel);
    PosY = intY(panel);
}
#endregion

#region 马超
private void panel_Click(object sender, EventArgs e)
{
    panel.BackgroundImage = (Image)(Properties.Resources._003);
    panel.BackgroundImage = (Image)(Properties.Resources._001);
    panel.BackgroundImage = (Image)(Properties.Resources._004);
    panel.BackgroundImage = (Image)(Properties.Resources.a5);
    panel.BackgroundImage = (Image)(Properties.Resources._002);
    panel.BackgroundImage = (Image)(Properties.Resources._006);
    panel.BackgroundImage = (Image)(Properties.Resources._007);
    panel.BackgroundImage = (Image)(Properties.Resources._008);
    panel.BackgroundImage = (Image)(Properties.Resources._009);
    panel.BackgroundImage = (Image)(Properties.Resources._010);
    PStyle = PStyles.PV;
    pl = panel;
    PosX = intX(panel);
    PosY = intY(panel);
}
#endregion

#region 关羽
private void panel_Click(object sender, EventArgs e)
{
    panel.BackgroundImage = (Image)(Properties.Resources._003);
    panel.BackgroundImage = (Image)(Properties.Resources._001);
    panel.BackgroundImage = (Image)(Properties.Resources._004);
    panel.BackgroundImage = (Image)(Properties.Resources._005);
    panel.BackgroundImage = (Image)(Properties.Resources.a2);
    panel.BackgroundImage = (Image)(Properties.Resources._006);
    panel.BackgroundImage = (Image)(Properties.Resources._007);
    panel.BackgroundImage = (Image)(Properties.Resources._008);
    panel.BackgroundImage = (Image)(Properties.Resources._009);
    panel.BackgroundImage = (Image)(Properties.Resources._010);
    PStyle = PStyles.PH;
    pl = panel;
    PosX = intX(panel);
    PosY = intY(panel);
}
#endregion

#region 黄忠
private void panel_Click(object sender, EventArgs e)
{
    panel.BackgroundImage = (Image)(Properties.Resources._003);
    panel.BackgroundImage = (Image)(Properties.Resources._001);
    panel.BackgroundImage = (Image)(Properties.Resources._004);
    panel.BackgroundImage = (Image)(Properties.Resources._005);
    panel.BackgroundImage = (Image)(Properties.Resources._002);
    panel.BackgroundImage = (Image)(Properties.Resources.a6);
    panel.BackgroundImage = (Image)(Properties.Resources._007);
    panel.BackgroundImage = (Image)(Properties.Resources._008);
    panel.BackgroundImage = (Image)(Properties.Resources._009);
    panel.BackgroundImage = (Image)(Properties.Resources._010);
    PStyle = PStyles.PV;
    pl = panel;
    PosX = intX(panel);
    PosY = intY(panel);
}
#endregion

#region 士兵一
private void panel_Click(object sender, EventArgs e)
{
    panel.BackgroundImage = (Image)(Properties.Resources._003);
    panel.BackgroundImage = (Image)(Properties.Resources._001);
    panel.BackgroundImage = (Image)(Properties.Resources._004);
    panel.BackgroundImage = (Image)(Properties.Resources._005);
    panel.BackgroundImage = (Image)(Properties.Resources._002);
    panel.BackgroundImage = (Image)(Properties.Resources._006);
    panel.BackgroundImage = (Image)(Properties.Resources.a7);
    panel.BackgroundImage = (Image)(Properties.Resources._008);
    panel.BackgroundImage = (Image)(Properties.Resources._009);
    panel.BackgroundImage = (Image)(Properties.Resources._010);
    PStyle = PStyles.P;
    pl = panel;
    PosX = intX(panel);
    PosY = intY(panel);
}
#endregion

#region 士兵二
private void panel_Click(object sender, EventArgs e)
{
    panel.BackgroundImage = (Image)(Properties.Resources._003);
    panel.BackgroundImage = (Image)(Properties.Resources._001);
    panel.BackgroundImage = (Image)(Properties.Resources._004);
    panel.BackgroundImage = (Image)(Properties.Resources._005);
    panel.BackgroundImage = (Image)(Properties.Resources._002);
    panel.BackgroundImage = (Image)(Properties.Resources._006);
    panel.BackgroundImage = (Image)(Properties.Resources._007);
    panel.BackgroundImage = (Image)(Properties.Resources.a8);
    panel.BackgroundImage = (Image)(Properties.Resources._009);
    panel.BackgroundImage = (Image)(Properties.Resources._010);
    PStyle = PStyles.P;
    pl = panel;
    PosX = intX(panel);
    PosY = intY(panel);
}
#endregion

#region 士兵三
private void panel_Click(object sender, EventArgs e)
{
    panel.BackgroundImage = (Image)(Properties.Resources._003);
    panel.BackgroundImage = (Image)(Properties.Resources._001);
    panel.BackgroundImage = (Image)(Properties.Resources._004);
    panel.BackgroundImage = (Image)(Properties.Resources._005);
    panel.BackgroundImage = (Image)(Properties.Resources._002);
    panel.BackgroundImage = (Image)(Properties.Resources._006);
    panel.BackgroundImage = (Image)(Properties.Resources._007);
    panel.BackgroundImage = (Image)(Properties.Resources._008);
    panel.BackgroundImage = (Image)(Properties.Resources.a9);
    panel.BackgroundImage = (Image)(Properties.Resources._010);
    PStyle = PStyles.P;
    pl = panel;
    PosX = intX(panel);
    PosY = intY(panel);
}
#endregion

#region 士兵四
private void panel_Click(object sender, EventArgs e)
{
    panel.BackgroundImage = (Image)(Properties.Resources._003);
    panel.BackgroundImage = (Image)(Properties.Resources._001);
    panel.BackgroundImage = (Image)(Properties.Resources._004);
    panel.BackgroundImage = (Image)(Properties.Resources._005);
    panel.BackgroundImage = (Image)(Properties.Resources._002);
    panel.BackgroundImage = (Image)(Properties.Resources._006);
    panel.BackgroundImage = (Image)(Properties.Resources._007);
    panel.BackgroundImage = (Image)(Properties.Resources._008);
    panel.BackgroundImage = (Image)(Properties.Resources._009);
    panel.BackgroundImage = (Image)(Properties.Resources.a10);
    PStyle = PStyles.P;
    pl = panel;
    PosX = intX(panel);
    PosY = intY(panel);
}
#endregion

#region 判断是否成功
///<summary>
///判断是否成功
///</summary>
///<returns>true表示成功,false表示失败</returns>
private bool Successful()
{
    if (panel.Location == new Point(108, 343))
    {
        MessageBox.Show("恭喜你,曹操已经成功逃离华容道!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
        return true;
    }
    else
        return false;
}
#endregion

//通过按键盘上的上、下、左、右键来移动人物方格
private void Form_KeyUp(object sender, KeyEventArgs e)
{
    blUp = blDown = blLeft = blRight = false;//设置上、下、左、右方向移动不可用  
    switch (e.KeyData)
    {
        case Keys.Up:       //向上移动
            blUp = true;
            break;
        case Keys.Down:     //向下移动
            blDown = true;
            break;
        case Keys.Left:     //向左移动
            blLeft = true;
            break;
        case Keys.Right:    //向右移动
            blRight = true;
            break;
    }
    MovePosition(pl, PosX, PosY);//移动人物方格位置
    if (Successful())//判断是否成功
        button_Click(sender, e);//重新开始
}

//定义每个人物方格的大小, 共有x*y(x=, y=5)个人物方格
public enum plEnumerate : int
{
    plSize =,   //人物方格大小
    plX =,        //定义列
    plY =,        //定义行
};

//判断索引位置是否可用
public bool[,] PlState = new bool[(int)plEnumerate.plY, (int)plEnumerate.plX];

//定义一个数组,用来记录各人物方格位置
private Point[,] position = new Point[, 4] {
    { new Point(, 43), new Point(108, 43), new Point(208, 43), new Point(308, 43) },
    { new Point(, 143), new Point(108, 143), new Point(208, 143), new Point(308, 143) },
    { new Point(, 243), new Point(108, 243), new Point(208, 243), new Point(308, 243) },
    { new Point(, 343), new Point(108, 343), new Point(208, 343), new Point(308, 343) },
    { new Point(, 443), new Point(108, 443), new Point(208, 443), new Point(308, 443) },
};

//获取人物方格的位置
public Point[,] GetPosition()
{
    return this.position;
}

//定义各人物方格的形状
public enum PStyles : int
{
    P = 0,//口
    P = 1,//田
    PV = 2,//日
    PH = 3,//口口
};

private int m_PStyle;//获取人物样式的编号

//记录人物样式形状
public PStyles PStyle
{
    get { return (PStyles)this.m_PStyle; }
    set { this.m_PStyle = (int)value; }
}

private int m_X =, m_Y = 0;//记录人物方格索引

//返回人物方格列索引
public int PosX
{
    get { return this.m_X; }
    set { this.m_X = value; }
}

//返回人物方格行索引
public int PosY
{
    get { return this.m_Y; }
    set { this.m_Y = value; }
}

#region 计算选中的人物方格在数组中的列索引
///<summary>
///计算选中的人物方格在数组中的列索引
///</summary>
///<param name="pl">选中的Panel控件</param>
///<returns>列索引</returns>
private int intX(Panel pl)
{
    int i = pl.Location.X -;
    return i /;
}
#endregion

#region 计算选中的人物方格在数组中的行索引
///<summary>
///计算选中的人物方格在数组中的行索引
///</summary>
///<param name="pl">选中的Panel控件</param>
///<returns>行索引</returns>
private int intY(Panel pl)
{
    int i = pl.Location.Y -;
    return i /;
}
#endregion

//定义个变量,分别用来表示向上、下、左、右移动
private bool blUp, blDown, blLeft, blRight;

#region 移动人物位置
///<summary>
///移动人物位置
///</summary>
///<param name="pl">要移动的控件名称</param>
///<param name="x">横坐标在坐标数组中的索引</param>
///<param name="y">纵坐标在坐标数组中的索引</param>
///<returns>是否移动成功</returns>
public bool MovePosition(Panel pl, int x, int y)
{
    #region 上移
    if (blUp && (y -) >= 0)
    {
        switch (PStyle)
        {
            case PStyles.P://田
            case PStyles.PH://口口
                if (!PlState[y -, x] && !PlState[y - 1, x + 1])
                {
                    pl.Location = GetPosition()[y -, x];
                    if (PStyle == PStyles.P)//田
                    {
                        PlState[y +, x] = false;
                        PlState[y +, x + 1] = false;
                    }
                    else if (PStyle == PStyles.PH)//口口
                    {
                        PlState[y, x] = false;
                        PlState[y, x +] = false;
                    }
                    PlState[y -, x] = true;
                    PlState[y -, x + 1] = true;
                    PosY -=;
                    return true;
                }
                else return false;
            case PStyles.PV://日
            case PStyles.P://口
                if (!PlState[y -, x])
                {
                    pl.Location = GetPosition()[y -, x];
                    if (PStyle == PStyles.PV)//日
                    {
                        PlState[y +, x] = false;
                    }
                    else if (PStyle == PStyles.P)//口
                    {
                        PlState[y, x] = false;
                    }
                    PlState[y -, x] = true;
                    PosY -=;
                    return true;
                }
                else return false;
        }
    }
    #endregion
    #region 下移
    else if (blDown)
    {
        switch (PStyle)
        {
            case PStyles.P://田
                if ((y +) < (int)plEnumerate.plY && !PlState[y + 2, x] && !PlState[y + 2, x + 1])
                {
                    pl.Location = GetPosition()[y +, x];
                    PlState[y, x] = false;
                    PlState[y, x +] = false;
                    PlState[y +, x] = true;
                    PlState[y +, x + 1] = true;
                    PosY +=;
                    return true;
                }
                else return false;
            case PStyles.PV://日
                if ((y +) < (int)plEnumerate.plY && !PlState[y + 2, x])
                {
                    pl.Location = GetPosition()[y +, x];
                    PlState[y, x] = false;
                    PlState[y +, x] = true;
                    PosY +=;
                    return true;
                }
                else return false;
            case PStyles.P://口
                if ((y +) < (int)plEnumerate.plY && !PlState[y + 1, x])
                {
                    pl.Location = GetPosition()[y +, x];
                    PlState[y, x] = false;
                    PlState[y +, x] = true;
                    PosY +=;
                    return true;
                }
                else return false;
            case PStyles.PH://口口
                if ((y +) < (int)plEnumerate.plY && !PlState[y + 1, x] && !PlState[y + 1, x + 1])
                {
                    pl.Location = GetPosition()[y +, x];
                    PlState[y, x] = false;
                    PlState[y, x +] = false;
                    PlState[y +, x] = true;
                    PlState[y +, x + 1] = true;
                    PosY +=;
                    return true;
                }
                else return false;
        }
    }
    #endregion
    #region 左移
    else if (blLeft)
    {
        switch (PStyle)
        {
            case PStyles.PV://日
            case PStyles.P://田
                if (x - >= 0 && !PlState[y, x - 1] && !PlState[y + 1, x - 1])
                {
                    pl.Location = GetPosition()[y, x -];
                    switch (PStyle)
                    {
                        case PStyles.P://田
                            PlState[y, x +] = false;
                            PlState[y +, x + 1] = false;
                            break;

                        case PStyles.PV://日
                            PlState[y, x] = false;
                            PlState[y +, x] = false;
                            break;
                    }
                    PlState[y, x -] = true;
                    PlState[y +, x - 1] = true;
                    PosX -=;
                    return true;
                }
                else return false;
            case PStyles.P://口
            case PStyles.PH://口口
                if (x - >= 0 && !PlState[y, x - 1])
                {
                    pl.Location = GetPosition()[y, x -];
                    if (PStyle == PStyles.PH)//口口
                    {
                        PlState[y, x +] = false;
                    }
                    else
                    {
                        PlState[y, x] = false;
                    }
                    PlState[y, x -] = true;
                    PosX -=;
                    return true;
                }
                else return false;
        }
    }
    #endregion
    #region 右移
    else if (blRight)
    {
        switch (PStyle)
        {
            case PStyles.P://田
                if (x + < (int)plEnumerate.plX && !PlState[y, x + 2] && !PlState[y + 1, x + 2])
                {
                    pl.Location = GetPosition()[y, x +];
                    PlState[y, x] = false;
                    PlState[y +, x] = false;
                    PlState[y, x +] = true;
                    PlState[y +, x + 2] = true;
                    PosX +=;
                    return true;
                }
                else return false;
            case PStyles.P://口
                if (x + < (int)plEnumerate.plX && !PlState[y, x + 1])
                {
                    pl.Location = GetPosition()[y, x +];
                    PlState[y, x] = false;
                    PlState[y, x +] = true;
                    PosX +=;
                    return true;
                }
                else return false;
            case PStyles.PH://口口
                if (x + < (int)plEnumerate.plX && !PlState[y, x + 2])
                {
                    pl.Location = GetPosition()[y, x +];
                    PlState[y, x] = false;
                    PlState[y, x +] = true;
                    PosX +=;
                    return true;
                }
                else return false;
            case PStyles.PV://日
                if (x + < (int)plEnumerate.plX && !PlState[y, x + 1] && !PlState[y + 1, x + 1])
                {
                    pl.Location = GetPosition()[y, x +];
                    PlState[y, x] = false;
                    PlState[y +, x] = false;
                    PlState[y, x +] = true;
                    PlState[y +, x + 1] = true;
                    PosX +=;
                    return true;
                }
                else return false;
        }
    }
    #endregion
    return false;
}      
#endregion
}
partial class Form
{
    /// <summary>
    /// 必需的设计器变量。
    /// </summary>
    private System.ComponentModel.IContainer components = null;

    /// <summary>
    /// 清理所有正在使用的资源。
    /// </summary>
    /// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
    protected override void Dispose(bool disposing)
    {
        if (disposing && (components != null))
        {
            components.Dispose();
        }
        base.Dispose(disposing);
    }

    #region Windows 窗体设计器生成的代码

    /// <summary>
    /// 设计器支持所需的方法 - 不要
    /// 使用代码编辑器修改此方法的内容。
    /// </summary>
    private void InitializeComponent()
    {
        this.panel = new System.Windows.Forms.Panel();
        this.panel = new System.Windows.Forms.Panel();
        this.panel = new System.Windows.Forms.Panel();
        this.panel = new System.Windows.Forms.Panel();
        this.panel = new System.Windows.Forms.Panel();
        this.panel = new System.Windows.Forms.Panel();
        this.panel = new System.Windows.Forms.Panel();
        this.panel = new System.Windows.Forms.Panel();
        this.panel = new System.Windows.Forms.Panel();
        this.panel = new System.Windows.Forms.Panel();
        this.button = new System.Windows.Forms.Button();
        this.SuspendLayout();
        // 
        // panel
        // 
        this.panel.BackgroundImage = global::HuaRongDao.Properties.Resources._003;
        this.panel.Location = new System.Drawing.Point(8, 43);
        this.panel.Name = "panel1";
        this.panel.Size = new System.Drawing.Size(100, 200);
        this.panel.TabIndex = 0;
        this.panel.Click += new System.EventHandler(this.panel1_Click);
        // 
        // panel
        // 
        this.panel.BackgroundImage = global::HuaRongDao.Properties.Resources._001;
        this.panel.Location = new System.Drawing.Point(108, 43);
        this.panel.Name = "panel2";
        this.panel.Size = new System.Drawing.Size(200, 200);
        this.panel.TabIndex = 0;
        this.panel.Click += new System.EventHandler(this.panel2_Click);
        // 
        // panel
        // 
        this.panel.BackgroundImage = global::HuaRongDao.Properties.Resources._004;
        this.panel.Location = new System.Drawing.Point(308, 43);
        this.panel.Name = "panel3";
        this.panel.Size = new System.Drawing.Size(100, 200);
        this.panel.TabIndex = 1;
        this.panel.Click += new System.EventHandler(this.panel3_Click);
        // 
        // panel
        // 
        this.panel.BackgroundImage = global::HuaRongDao.Properties.Resources._005;
        this.panel.Location = new System.Drawing.Point(8, 243);
        this.panel.Name = "panel4";
        this.panel.Size = new System.Drawing.Size(100, 200);
        this.panel.TabIndex = 2;
        this.panel.Click += new System.EventHandler(this.panel4_Click);
        // 
        // panel
        // 
        this.panel.BackgroundImage = global::HuaRongDao.Properties.Resources._002;
        this.panel.Location = new System.Drawing.Point(108, 243);
        this.panel.Name = "panel5";
        this.panel.Size = new System.Drawing.Size(200, 100);
        this.panel.TabIndex = 3;
        this.panel.Click += new System.EventHandler(this.panel5_Click);
        // 
        // panel
        // 
        this.panel.BackgroundImage = global::HuaRongDao.Properties.Resources._006;
        this.panel.Location = new System.Drawing.Point(308, 243);
        this.panel.Name = "panel6";
        this.panel.Size = new System.Drawing.Size(100, 200);
        this.panel.TabIndex = 4;
        this.panel.Click += new System.EventHandler(this.panel6_Click);
        // 
        // panel
        // 
        this.panel.BackgroundImage = global::HuaRongDao.Properties.Resources._007;
        this.panel.Location = new System.Drawing.Point(108, 343);
        this.panel.Name = "panel7";
        this.panel.Size = new System.Drawing.Size(100, 100);
        this.panel.TabIndex = 5;
        this.panel.Click += new System.EventHandler(this.panel7_Click);
        // 
        // panel
        // 
        this.panel.BackgroundImage = global::HuaRongDao.Properties.Resources._008;
        this.panel.Location = new System.Drawing.Point(208, 343);
        this.panel.Name = "panel8";
        this.panel.Size = new System.Drawing.Size(100, 100);
        this.panel.TabIndex = 6;
        this.panel.Click += new System.EventHandler(this.panel8_Click);
        // 
        // panel
        // 
        this.panel.BackgroundImage = global::HuaRongDao.Properties.Resources._009;
        this.panel.Location = new System.Drawing.Point(8, 443);
        this.panel.Name = "panel9";
        this.panel.Size = new System.Drawing.Size(100, 100);
        this.panel.TabIndex = 7;
        this.panel.Click += new System.EventHandler(this.panel9_Click);
        // 
        // panel
        // 
        this.panel.BackgroundImage = global::HuaRongDao.Properties.Resources._010;
        this.panel.Location = new System.Drawing.Point(308, 443);
        this.panel.Name = "panel10";
        this.panel.Size = new System.Drawing.Size(100, 100);
        this.panel.TabIndex = 8;
        this.panel.Click += new System.EventHandler(this.panel10_Click);
        // 
        // button
        // 
        this.button.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
        this.button.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
        this.button.ForeColor = System.Drawing.Color.White;
        this.button.Location = new System.Drawing.Point(11, 9);
        this.button.Name = "button1";
        this.button.Size = new System.Drawing.Size(75, 25);
        this.button.TabIndex = 0;
        this.button.Text = "新游戏";
        this.button.UseVisualStyleBackColor = true;
        this.button.Click += new System.EventHandler(this.button1_Click);
        // 
        // Form
        // 
        this.AutoScaleDimensions = new System.Drawing.SizeF(F, 12F);
        this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
        this.BackColor = System.Drawing.Color.Teal;
        this.ClientSize = new System.Drawing.Size(, 550);
        this.Controls.Add(this.button);
        this.Controls.Add(this.panel);
        this.Controls.Add(this.panel);
        this.Controls.Add(this.panel);
        this.Controls.Add(this.panel);
        this.Controls.Add(this.panel);
        this.Controls.Add(this.panel);
        this.Controls.Add(this.panel);
        this.Controls.Add(this.panel);
        this.Controls.Add(this.panel);
        this.Controls.Add(this.panel);
        this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
        this.KeyPreview = true;
        this.MaximizeBox = false;
        this.Name = "Form";
        this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
        this.Text = "华容道";
        this.Load += new System.EventHandler(this.Form_Load);
        this.KeyUp += new System.Windows.Forms.KeyEventHandler(this.Form_KeyUp);
        this.ResumeLayout(false);

    }

    #endregion

    private System.Windows.Forms.Panel panel;
    private System.Windows.Forms.Panel panel;
    private System.Windows.Forms.Panel panel;
    private System.Windows.Forms.Panel panel;
    private System.Windows.Forms.Panel panel;
    private System.Windows.Forms.Panel panel;
    private System.Windows.Forms.Panel panel;
    private System.Windows.Forms.Panel panel;
    private System.Windows.Forms.Panel panel;
    private System.Windows.Forms.Panel panel;
    private System.Windows.Forms.Button button;
}