|
https://pan.baidu.com/s/1ZieHX9BkaWEi1gjK3k9FLg
提取码:npm3
已测试。
/*******************************
* 作者:泰勒Peano
* 邮箱:656029714@qq.com
* CSDN地址:https://blog.csdn.net/weixin_44996090?spm=1001.2014.3001.5113
* Github地址:https://github.com/GoodZheng
* 时间:2020.11.28
******************************/
一、ControlForm窗体
namespace 贪吃蛇
{
public partial class ControlFrm : Form
{
public ControlFrm()
{
InitializeComponent();
}
//“关于”按钮click
private void button3_Click(object sender, EventArgs e)
{
AboutMe hf = new AboutMe();
hf.ShowDialog();
}
//“玩法介绍”按钮click
private void button2_Click(object sender, EventArgs e)
{
HowToPlay htp = new HowToPlay();
htp.ShowDialog();
}
//“开始游戏”按钮click
private void button1_Click(object sender, EventArgs e)
{
GameFrm gf = new GameFrm();
gf.ShowDialog();
}
}
}
二、GameForm窗体
namespace 贪吃蛇
{
public partial class GameFrm : Form
{
#region 构造函数
public GameFrm()
{
InitializeComponent();
}
........................
}
|
|