C#语言实例源码系列-游戏-实现华容道
创始人
2024-05-05 19:28:48
0
专栏分享
  • 点击跳转=>Unity3D特效百例
  • 点击跳转=>案例项目实战源码
  • 点击跳转=>游戏脚本-辅助自动化
  • 点击跳转=>Android控件全解手册

👉关于作者

众所周知,人生是一个漫长的流程,不断克服困难,不断反思前进的过程。在这个过程中会产生很多对于人生的质疑和思考,于是我决定将自己的思考,经验和故事全部分享出来,以此寻找共鸣 !!!
专注于Android/Unity和各种游戏开发技巧,以及各种资源分享(网站、工具、素材、源码、游戏等)
有什么需要欢迎私我,交流群让学习不再孤单

在这里插入图片描述

👉实践过程

😜效果

在这里插入图片描述

😜代码

/*** https://zhima.blog.csdn.net/*/
public partial class Form1 : Form
{
public Form1()
{InitializeComponent();
}private Panel pl;//记录选中的控件IDprivate void Form1_Load(object sender, EventArgs e)
{//初始化时设置各个位置的可用状态PlState[0, 0] = PlState[0, 1] = PlState[0, 2] = PlState[0, 3] =PlState[1, 0] = PlState[1, 1] = PlState[1, 2] = PlState[1, 3] =PlState[2, 0] = PlState[2, 1] = PlState[2, 2] = PlState[2, 3] =PlState[3, 0] = PlState[3, 1] = PlState[3, 2] = PlState[3, 3] =PlState[4, 0] = PlState[4, 3] = true;
}//初始化各人物方格位置
private void button1_Click(object sender, EventArgs e)
{//设置各方格的初始图片panel1.BackgroundImage = (Image)(Properties.Resources._003);panel2.BackgroundImage = (Image)(Properties.Resources._001);panel3.BackgroundImage = (Image)(Properties.Resources._004);panel4.BackgroundImage = (Image)(Properties.Resources._005);panel5.BackgroundImage = (Image)(Properties.Resources._002);panel6.BackgroundImage = (Image)(Properties.Resources._006);panel7.BackgroundImage = (Image)(Properties.Resources._007);panel8.BackgroundImage = (Image)(Properties.Resources._008);panel9.BackgroundImage = (Image)(Properties.Resources._009);panel10.BackgroundImage = (Image)(Properties.Resources._010);//设置各方格的初始位置panel1.Location = position[0, 0];panel2.Location = position[0, 1];panel3.Location = position[0, 3];panel4.Location = position[2, 0];panel5.Location = position[2, 1];panel6.Location = position[2, 3];panel7.Location = position[3, 1];panel8.Location = position[3, 2];panel9.Location = position[4, 0];panel10.Location = position[4, 3];PlState[4, 0] = PlState[4, 3] = true;   //设置最后一行的首尾位置不可用PlState[4, 1] = PlState[4, 2] = false;  //设置最后一行的中间两个位置可用
}#region 赵云
private void panel1_Click(object sender, EventArgs e)
{//设置各方格图片panel1.BackgroundImage = (Image)(Properties.Resources.a3);panel2.BackgroundImage = (Image)(Properties.Resources._001);panel3.BackgroundImage = (Image)(Properties.Resources._004);panel4.BackgroundImage = (Image)(Properties.Resources._005);panel5.BackgroundImage = (Image)(Properties.Resources._002);panel6.BackgroundImage = (Image)(Properties.Resources._006);panel7.BackgroundImage = (Image)(Properties.Resources._007);panel8.BackgroundImage = (Image)(Properties.Resources._008);panel9.BackgroundImage = (Image)(Properties.Resources._009);panel10.BackgroundImage = (Image)(Properties.Resources._010);PStyle = PStyles.P2V;//记录方格样式pl = panel1;         //记录选中的控件IDPosX = intX(panel1); //记录选中控件在坐标数组中的列索引PosY = intY(panel1); //记录选中控件在坐标数组中的行索引
}
#endregion#region 曹操
private void panel2_Click(object sender, EventArgs e)
{panel1.BackgroundImage = (Image)(Properties.Resources._003);panel2.BackgroundImage = (Image)(Properties.Resources.a1);panel3.BackgroundImage = (Image)(Properties.Resources._004);panel4.BackgroundImage = (Image)(Properties.Resources._005);panel5.BackgroundImage = (Image)(Properties.Resources._002);panel6.BackgroundImage = (Image)(Properties.Resources._006);panel7.BackgroundImage = (Image)(Properties.Resources._007);panel8.BackgroundImage = (Image)(Properties.Resources._008);panel9.BackgroundImage = (Image)(Properties.Resources._009);panel10.BackgroundImage = (Image)(Properties.Resources._010);PStyle = PStyles.P4;pl = panel2;PosX = intX(panel2);PosY = intY(panel2);
}
#endregion#region 张飞
private void panel3_Click(object sender, EventArgs e)
{panel1.BackgroundImage = (Image)(Properties.Resources._003);panel2.BackgroundImage = (Image)(Properties.Resources._001);panel3.BackgroundImage = (Image)(Properties.Resources.a4);panel4.BackgroundImage = (Image)(Properties.Resources._005);panel5.BackgroundImage = (Image)(Properties.Resources._002);panel6.BackgroundImage = (Image)(Properties.Resources._006);panel7.BackgroundImage = (Image)(Properties.Resources._007);panel8.BackgroundImage = (Image)(Properties.Resources._008);panel9.BackgroundImage = (Image)(Properties.Resources._009);panel10.BackgroundImage = (Image)(Properties.Resources._010);PStyle = PStyles.P2V;pl = panel3;PosX = intX(panel3);PosY = intY(panel3);
}
#endregion#region 马超
private void panel4_Click(object sender, EventArgs e)
{panel1.BackgroundImage = (Image)(Properties.Resources._003);panel2.BackgroundImage = (Image)(Properties.Resources._001);panel3.BackgroundImage = (Image)(Properties.Resources._004);panel4.BackgroundImage = (Image)(Properties.Resources.a5);panel5.BackgroundImage = (Image)(Properties.Resources._002);panel6.BackgroundImage = (Image)(Properties.Resources._006);panel7.BackgroundImage = (Image)(Properties.Resources._007);panel8.BackgroundImage = (Image)(Properties.Resources._008);panel9.BackgroundImage = (Image)(Properties.Resources._009);panel10.BackgroundImage = (Image)(Properties.Resources._010);PStyle = PStyles.P2V;pl = panel4;PosX = intX(panel4);PosY = intY(panel4);
}
#endregion#region 关羽
private void panel5_Click(object sender, EventArgs e)
{panel1.BackgroundImage = (Image)(Properties.Resources._003);panel2.BackgroundImage = (Image)(Properties.Resources._001);panel3.BackgroundImage = (Image)(Properties.Resources._004);panel4.BackgroundImage = (Image)(Properties.Resources._005);panel5.BackgroundImage = (Image)(Properties.Resources.a2);panel6.BackgroundImage = (Image)(Properties.Resources._006);panel7.BackgroundImage = (Image)(Properties.Resources._007);panel8.BackgroundImage = (Image)(Properties.Resources._008);panel9.BackgroundImage = (Image)(Properties.Resources._009);panel10.BackgroundImage = (Image)(Properties.Resources._010);PStyle = PStyles.P2H;pl = panel5;PosX = intX(panel5);PosY = intY(panel5);
}
#endregion#region 黄忠
private void panel6_Click(object sender, EventArgs e)
{panel1.BackgroundImage = (Image)(Properties.Resources._003);panel2.BackgroundImage = (Image)(Properties.Resources._001);panel3.BackgroundImage = (Image)(Properties.Resources._004);panel4.BackgroundImage = (Image)(Properties.Resources._005);panel5.BackgroundImage = (Image)(Properties.Resources._002);panel6.BackgroundImage = (Image)(Properties.Resources.a6);panel7.BackgroundImage = (Image)(Properties.Resources._007);panel8.BackgroundImage = (Image)(Properties.Resources._008);panel9.BackgroundImage = (Image)(Properties.Resources._009);panel10.BackgroundImage = (Image)(Properties.Resources._010);PStyle = PStyles.P2V;pl = panel6;PosX = intX(panel6);PosY = intY(panel6);
}
#endregion#region 士兵一
private void panel7_Click(object sender, EventArgs e)
{panel1.BackgroundImage = (Image)(Properties.Resources._003);panel2.BackgroundImage = (Image)(Properties.Resources._001);panel3.BackgroundImage = (Image)(Properties.Resources._004);panel4.BackgroundImage = (Image)(Properties.Resources._005);panel5.BackgroundImage = (Image)(Properties.Resources._002);panel6.BackgroundImage = (Image)(Properties.Resources._006);panel7.BackgroundImage = (Image)(Properties.Resources.a7);panel8.BackgroundImage = (Image)(Properties.Resources._008);panel9.BackgroundImage = (Image)(Properties.Resources._009);panel10.BackgroundImage = (Image)(Properties.Resources._010);PStyle = PStyles.P1;pl = panel7;PosX = intX(panel7);PosY = intY(panel7);
}
#endregion#region 士兵二
private void panel8_Click(object sender, EventArgs e)
{panel1.BackgroundImage = (Image)(Properties.Resources._003);panel2.BackgroundImage = (Image)(Properties.Resources._001);panel3.BackgroundImage = (Image)(Properties.Resources._004);panel4.BackgroundImage = (Image)(Properties.Resources._005);panel5.BackgroundImage = (Image)(Properties.Resources._002);panel6.BackgroundImage = (Image)(Properties.Resources._006);panel7.BackgroundImage = (Image)(Properties.Resources._007);panel8.BackgroundImage = (Image)(Properties.Resources.a8);panel9.BackgroundImage = (Image)(Properties.Resources._009);panel10.BackgroundImage = (Image)(Properties.Resources._010);PStyle = PStyles.P1;pl = panel8;PosX = intX(panel8);PosY = intY(panel8);
}
#endregion#region 士兵三
private void panel9_Click(object sender, EventArgs e)
{panel1.BackgroundImage = (Image)(Properties.Resources._003);panel2.BackgroundImage = (Image)(Properties.Resources._001);panel3.BackgroundImage = (Image)(Properties.Resources._004);panel4.BackgroundImage = (Image)(Properties.Resources._005);panel5.BackgroundImage = (Image)(Properties.Resources._002);panel6.BackgroundImage = (Image)(Properties.Resources._006);panel7.BackgroundImage = (Image)(Properties.Resources._007);panel8.BackgroundImage = (Image)(Properties.Resources._008);panel9.BackgroundImage = (Image)(Properties.Resources.a9);panel10.BackgroundImage = (Image)(Properties.Resources._010);PStyle = PStyles.P1;pl = panel9;PosX = intX(panel9);PosY = intY(panel9);
}
#endregion#region 士兵四
private void panel10_Click(object sender, EventArgs e)
{panel1.BackgroundImage = (Image)(Properties.Resources._003);panel2.BackgroundImage = (Image)(Properties.Resources._001);panel3.BackgroundImage = (Image)(Properties.Resources._004);panel4.BackgroundImage = (Image)(Properties.Resources._005);panel5.BackgroundImage = (Image)(Properties.Resources._002);panel6.BackgroundImage = (Image)(Properties.Resources._006);panel7.BackgroundImage = (Image)(Properties.Resources._007);panel8.BackgroundImage = (Image)(Properties.Resources._008);panel9.BackgroundImage = (Image)(Properties.Resources._009);panel10.BackgroundImage = (Image)(Properties.Resources.a10);PStyle = PStyles.P1;pl = panel10;PosX = intX(panel10);PosY = intY(panel10);
}
#endregion#region 判断是否成功
///
///判断是否成功
///
///true表示成功,false表示失败
private bool Successful()
{if (panel2.Location == new Point(108, 343)){MessageBox.Show("恭喜你,曹操已经成功逃离华容道!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);return true;}elsereturn false;
}
#endregion//通过按键盘上的上、下、左、右键来移动人物方格
private void Form1_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())//判断是否成功button1_Click(sender, e);//重新开始
}//定义每个人物方格的大小, 共有x*y(x=4, y=5)个人物方格
public enum plEnumerate : int
{plSize = 100,   //人物方格大小plX = 4,        //定义列plY = 5,        //定义行
};//判断索引位置是否可用
public bool[,] PlState = new bool[(int)plEnumerate.plY, (int)plEnumerate.plX];//定义一个数组,用来记录各人物方格位置
private Point[,] position = new Point[5, 4] {{ new Point(8, 43), new Point(108, 43), new Point(208, 43), new Point(308, 43) },{ new Point(8, 143), new Point(108, 143), new Point(208, 143), new Point(308, 143) },{ new Point(8, 243), new Point(108, 243), new Point(208, 243), new Point(308, 243) },{ new Point(8, 343), new Point(108, 343), new Point(208, 343), new Point(308, 343) },{ new Point(8, 443), new Point(108, 443), new Point(208, 443), new Point(308, 443) },
};//获取人物方格的位置
public Point[,] GetPosition()
{return this.position;
}//定义各人物方格的形状
public enum PStyles : int
{P1 = 0,//口P4 = 1,//田P2V = 2,//日P2H = 3,//口口
};private int m_PStyle;//获取人物样式的编号//记录人物样式形状
public PStyles PStyle
{get { return (PStyles)this.m_PStyle; }set { this.m_PStyle = (int)value; }
}private int m_X = 0, 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 计算选中的人物方格在数组中的列索引
///
///计算选中的人物方格在数组中的列索引
///
///选中的Panel控件
///列索引
private int intX(Panel pl)
{int i = pl.Location.X - 8;return i / 100;
}
#endregion#region 计算选中的人物方格在数组中的行索引
///
///计算选中的人物方格在数组中的行索引
///
///选中的Panel控件
///行索引
private int intY(Panel pl)
{int i = pl.Location.Y - 43;return i / 100;
}
#endregion//定义4个变量,分别用来表示向上、下、左、右移动
private bool blUp, blDown, blLeft, blRight;#region 移动人物位置
///
///移动人物位置
///
///要移动的控件名称
///横坐标在坐标数组中的索引
///纵坐标在坐标数组中的索引
///是否移动成功
public bool MovePosition(Panel pl, int x, int y)
{#region 上移if (blUp && (y - 1) >= 0){switch (PStyle){case PStyles.P4://田case PStyles.P2H://口口if (!PlState[y - 1, x] && !PlState[y - 1, x + 1]){pl.Location = GetPosition()[y - 1, x];if (PStyle == PStyles.P4)//田{PlState[y + 1, x] = false;PlState[y + 1, x + 1] = false;}else if (PStyle == PStyles.P2H)//口口{PlState[y, x] = false;PlState[y, x + 1] = false;}PlState[y - 1, x] = true;PlState[y - 1, x + 1] = true;PosY -= 1;return true;}else return false;case PStyles.P2V://日case PStyles.P1://口if (!PlState[y - 1, x]){pl.Location = GetPosition()[y - 1, x];if (PStyle == PStyles.P2V)//日{PlState[y + 1, x] = false;}else if (PStyle == PStyles.P1)//口{PlState[y, x] = false;}PlState[y - 1, x] = true;PosY -= 1;return true;}else return false;}}#endregion#region 下移else if (blDown){switch (PStyle){case PStyles.P4://田if ((y + 2) < (int)plEnumerate.plY && !PlState[y + 2, x] && !PlState[y + 2, x + 1]){pl.Location = GetPosition()[y + 1, x];PlState[y, x] = false;PlState[y, x + 1] = false;PlState[y + 2, x] = true;PlState[y + 2, x + 1] = true;PosY += 1;return true;}else return false;case PStyles.P2V://日if ((y + 2) < (int)plEnumerate.plY && !PlState[y + 2, x]){pl.Location = GetPosition()[y + 1, x];PlState[y, x] = false;PlState[y + 2, x] = true;PosY += 1;return true;}else return false;case PStyles.P1://口if ((y + 1) < (int)plEnumerate.plY && !PlState[y + 1, x]){pl.Location = GetPosition()[y + 1, x];PlState[y, x] = false;PlState[y + 1, x] = true;PosY += 1;return true;}else return false;case PStyles.P2H://口口if ((y + 1) < (int)plEnumerate.plY && !PlState[y + 1, x] && !PlState[y + 1, x + 1]){pl.Location = GetPosition()[y + 1, x];PlState[y, x] = false;PlState[y, x + 1] = false;PlState[y + 1, x] = true;PlState[y + 1, x + 1] = true;PosY += 1;return true;}else return false;}}#endregion#region 左移else if (blLeft){switch (PStyle){case PStyles.P2V://日case PStyles.P4://田if (x - 1 >= 0 && !PlState[y, x - 1] && !PlState[y + 1, x - 1]){pl.Location = GetPosition()[y, x - 1];switch (PStyle){case PStyles.P4://田PlState[y, x + 1] = false;PlState[y + 1, x + 1] = false;break;case PStyles.P2V://日PlState[y, x] = false;PlState[y + 1, x] = false;break;}PlState[y, x - 1] = true;PlState[y + 1, x - 1] = true;PosX -= 1;return true;}else return false;case PStyles.P1://口case PStyles.P2H://口口if (x - 1 >= 0 && !PlState[y, x - 1]){pl.Location = GetPosition()[y, x - 1];if (PStyle == PStyles.P2H)//口口{PlState[y, x + 1] = false;}else{PlState[y, x] = false;}PlState[y, x - 1] = true;PosX -= 1;return true;}else return false;}}#endregion#region 右移else if (blRight){switch (PStyle){case PStyles.P4://田if (x + 2 < (int)plEnumerate.plX && !PlState[y, x + 2] && !PlState[y + 1, x + 2]){pl.Location = GetPosition()[y, x + 1];PlState[y, x] = false;PlState[y + 1, x] = false;PlState[y, x + 2] = true;PlState[y + 1, x + 2] = true;PosX += 1;return true;}else return false;case PStyles.P1://口if (x + 1 < (int)plEnumerate.plX && !PlState[y, x + 1]){pl.Location = GetPosition()[y, x + 1];PlState[y, x] = false;PlState[y, x + 1] = true;PosX += 1;return true;}else return false;case PStyles.P2H://口口if (x + 2 < (int)plEnumerate.plX && !PlState[y, x + 2]){pl.Location = GetPosition()[y, x + 1];PlState[y, x] = false;PlState[y, x + 2] = true;PosX += 1;return true;}else return false;case PStyles.P2V://日if (x + 1 < (int)plEnumerate.plX && !PlState[y, x + 1] && !PlState[y + 1, x + 1]){pl.Location = GetPosition()[y, x + 1];PlState[y, x] = false;PlState[y + 1, x] = false;PlState[y, x + 1] = true;PlState[y + 1, x + 1] = true;PosX += 1;return true;}else return false;}}#endregionreturn false;
}      
#endregion
}
partial class Form1
{/// /// 必需的设计器变量。/// private System.ComponentModel.IContainer components = null;/// /// 清理所有正在使用的资源。/// /// 如果应释放托管资源,为 true;否则为 false。protected override void Dispose(bool disposing){if (disposing && (components != null)){components.Dispose();}base.Dispose(disposing);}#region Windows 窗体设计器生成的代码/// /// 设计器支持所需的方法 - 不要/// 使用代码编辑器修改此方法的内容。/// private void InitializeComponent(){this.panel1 = new System.Windows.Forms.Panel();this.panel2 = new System.Windows.Forms.Panel();this.panel3 = new System.Windows.Forms.Panel();this.panel4 = new System.Windows.Forms.Panel();this.panel5 = new System.Windows.Forms.Panel();this.panel6 = new System.Windows.Forms.Panel();this.panel7 = new System.Windows.Forms.Panel();this.panel8 = new System.Windows.Forms.Panel();this.panel9 = new System.Windows.Forms.Panel();this.panel10 = new System.Windows.Forms.Panel();this.button1 = new System.Windows.Forms.Button();this.SuspendLayout();// // panel1// this.panel1.BackgroundImage = global::HuaRongDao.Properties.Resources._003;this.panel1.Location = new System.Drawing.Point(8, 43);this.panel1.Name = "panel1";this.panel1.Size = new System.Drawing.Size(100, 200);this.panel1.TabIndex = 0;this.panel1.Click += new System.EventHandler(this.panel1_Click);// // panel2// this.panel2.BackgroundImage = global::HuaRongDao.Properties.Resources._001;this.panel2.Location = new System.Drawing.Point(108, 43);this.panel2.Name = "panel2";this.panel2.Size = new System.Drawing.Size(200, 200);this.panel2.TabIndex = 0;this.panel2.Click += new System.EventHandler(this.panel2_Click);// // panel3// this.panel3.BackgroundImage = global::HuaRongDao.Properties.Resources._004;this.panel3.Location = new System.Drawing.Point(308, 43);this.panel3.Name = "panel3";this.panel3.Size = new System.Drawing.Size(100, 200);this.panel3.TabIndex = 1;this.panel3.Click += new System.EventHandler(this.panel3_Click);// // panel4// this.panel4.BackgroundImage = global::HuaRongDao.Properties.Resources._005;this.panel4.Location = new System.Drawing.Point(8, 243);this.panel4.Name = "panel4";this.panel4.Size = new System.Drawing.Size(100, 200);this.panel4.TabIndex = 2;this.panel4.Click += new System.EventHandler(this.panel4_Click);// // panel5// this.panel5.BackgroundImage = global::HuaRongDao.Properties.Resources._002;this.panel5.Location = new System.Drawing.Point(108, 243);this.panel5.Name = "panel5";this.panel5.Size = new System.Drawing.Size(200, 100);this.panel5.TabIndex = 3;this.panel5.Click += new System.EventHandler(this.panel5_Click);// // panel6// this.panel6.BackgroundImage = global::HuaRongDao.Properties.Resources._006;this.panel6.Location = new System.Drawing.Point(308, 243);this.panel6.Name = "panel6";this.panel6.Size = new System.Drawing.Size(100, 200);this.panel6.TabIndex = 4;this.panel6.Click += new System.EventHandler(this.panel6_Click);// // panel7// this.panel7.BackgroundImage = global::HuaRongDao.Properties.Resources._007;this.panel7.Location = new System.Drawing.Point(108, 343);this.panel7.Name = "panel7";this.panel7.Size = new System.Drawing.Size(100, 100);this.panel7.TabIndex = 5;this.panel7.Click += new System.EventHandler(this.panel7_Click);// // panel8// this.panel8.BackgroundImage = global::HuaRongDao.Properties.Resources._008;this.panel8.Location = new System.Drawing.Point(208, 343);this.panel8.Name = "panel8";this.panel8.Size = new System.Drawing.Size(100, 100);this.panel8.TabIndex = 6;this.panel8.Click += new System.EventHandler(this.panel8_Click);// // panel9// this.panel9.BackgroundImage = global::HuaRongDao.Properties.Resources._009;this.panel9.Location = new System.Drawing.Point(8, 443);this.panel9.Name = "panel9";this.panel9.Size = new System.Drawing.Size(100, 100);this.panel9.TabIndex = 7;this.panel9.Click += new System.EventHandler(this.panel9_Click);// // panel10// this.panel10.BackgroundImage = global::HuaRongDao.Properties.Resources._010;this.panel10.Location = new System.Drawing.Point(308, 443);this.panel10.Name = "panel10";this.panel10.Size = new System.Drawing.Size(100, 100);this.panel10.TabIndex = 8;this.panel10.Click += new System.EventHandler(this.panel10_Click);// // button1// this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Popup;this.button1.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));this.button1.ForeColor = System.Drawing.Color.White;this.button1.Location = new System.Drawing.Point(11, 9);this.button1.Name = "button1";this.button1.Size = new System.Drawing.Size(75, 25);this.button1.TabIndex = 0;this.button1.Text = "新游戏";this.button1.UseVisualStyleBackColor = true;this.button1.Click += new System.EventHandler(this.button1_Click);// // Form1// this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;this.BackColor = System.Drawing.Color.Teal;this.ClientSize = new System.Drawing.Size(413, 550);this.Controls.Add(this.button1);this.Controls.Add(this.panel10);this.Controls.Add(this.panel9);this.Controls.Add(this.panel8);this.Controls.Add(this.panel7);this.Controls.Add(this.panel6);this.Controls.Add(this.panel5);this.Controls.Add(this.panel4);this.Controls.Add(this.panel3);this.Controls.Add(this.panel2);this.Controls.Add(this.panel1);this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;this.KeyPreview = true;this.MaximizeBox = false;this.Name = "Form1";this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;this.Text = "华容道";this.Load += new System.EventHandler(this.Form1_Load);this.KeyUp += new System.Windows.Forms.KeyEventHandler(this.Form1_KeyUp);this.ResumeLayout(false);}#endregionprivate System.Windows.Forms.Panel panel1;private System.Windows.Forms.Panel panel2;private System.Windows.Forms.Panel panel3;private System.Windows.Forms.Panel panel4;private System.Windows.Forms.Panel panel5;private System.Windows.Forms.Panel panel6;private System.Windows.Forms.Panel panel7;private System.Windows.Forms.Panel panel8;private System.Windows.Forms.Panel panel9;private System.Windows.Forms.Panel panel10;private System.Windows.Forms.Button button1;
}

需要的再直接Call我下方卡片,直接发。

👉其他

📢作者:小空和小芝中的小空
📢转载说明-务必注明来源:https://zhima.blog.csdn.net/
📢这位道友请留步☁️,我观你气度不凡,谈吐间隐隐有王者霸气💚,日后定有一番大作为📝!!!旁边有点赞👍收藏🌟今日传你,点了吧,未来你成功☀️,我分文不取,若不成功⚡️,也好回来找我。

温馨提示点击下方卡片获取更多意想不到的资源。
空名先生

相关内容

热门资讯

安卓系统自带的网页,功能与特色... 你有没有发现,每次打开安卓手机,那熟悉的系统界面里总有一个默默无闻的小家伙——安卓系统自带的网页浏览...
美咖云系统安卓版,开启智能生活... 你有没有发现,最近手机上多了一个叫“美咖云系统安卓版”的小家伙?它就像一个魔法师,轻轻一点,就能让你...
安卓系统推荐最好的手机,盘点性... 你有没有想过,拥有一部性能卓越的手机,就像是拥有了移动的宝藏库?在这个信息爆炸的时代,一部好手机不仅...
安卓11系统能精简吗,释放潜能 你有没有发现,随着手机越来越智能,系统也越来越庞大?安卓11系统,这个最新的操作系统,是不是也让你觉...
安卓自动重启系统软件,揭秘原因... 手机突然自动重启,是不是感觉整个人都不好了?别急,今天就来和你聊聊这个让人头疼的安卓自动重启系统软件...
苹果手机x刷安卓系统,探索安卓... 你有没有想过,你的苹果手机X竟然也能刷上安卓系统?是的,你没听错,就是那个一直以来都和我们苹果手机X...
安卓系统智商低吗,智商低下的真... 你有没有想过,为什么安卓系统的智商总被调侃得好像有点低呢?是不是觉得它总是慢吞吞的,有时候还犯点小错...
安卓系统手机联系人,揭秘你的社... 你有没有发现,手机里的联系人列表就像是一个小小的社交圈呢?里面藏着我们的亲朋好友、工作伙伴,甚至还有...
安卓系统免费铃声下载,打造个性... 手机里那首老掉牙的铃声是不是让你觉得有点out了呢?别急,今天就来给你支个招,让你轻松给安卓手机换上...
安卓系统用哪个桌面好,打造个性... 你有没有发现,手机桌面可是我们每天都要面对的“脸面”呢?换一个好看的桌面,心情都能跟着好起来。那么,...
虚拟大师是安卓10系统,功能与... 你知道吗?最近在手机圈里,有个新玩意儿引起了不小的轰动,那就是虚拟大师!而且,更让人惊喜的是,这个虚...
安卓系统与苹果优缺点,系统优缺... 说到手机操作系统,安卓和苹果绝对是两大巨头,它们各有各的特色,就像两道不同的美味佳肴,让人难以抉择。...
安卓win双系统主板,融合与创... 你有没有想过,一台电脑如果既能流畅运行安卓系统,又能轻松驾驭Windows系统,那该有多爽啊?没错,...
安卓系统可精简软件,轻松提升手... 你有没有发现,手机里的安卓系统越来越庞大,软件也越装越多,有时候感觉手机就像个“大肚子”,不仅运行速...
安卓系统基于linux的代码,... 你有没有想过,那个陪伴你每天刷抖音、玩游戏、办公的安卓系统,其实背后有着一套复杂的基于Linux的代...
苹果和安卓的拍照系统,谁更胜一... 你有没有发现,现在手机拍照已经成为我们生活中不可或缺的一部分呢?无论是记录生活的点滴,还是捕捉美丽的...
苹果和安卓系统不同吗,系统差异... 你有没有想过,为什么你的手机里装的是苹果的iOS系统,而朋友的手机却是安卓系统呢?这两种系统,看似都...
安卓系统有多少级,揭秘其多级架... 你有没有想过,那个陪伴我们日常生活的安卓系统,它其实有着丰富的层级结构呢?没错,就是那个让我们的手机...
华为鸿蒙系统与安卓的,技术融合... 你知道吗?最近科技圈可是炸开了锅,华为鸿蒙系统与安卓的较量成为了大家热议的话题。这不,今天我就来给你...
什么安卓手机是苹果系统,搭载苹... 你有没有想过,为什么有些人宁愿花大价钱买苹果手机,而有些人却对安卓手机情有独钟呢?其实,这个问题背后...