嘿,亲!知识可是无价之宝呢,但咱这精心整理的资料也耗费了不少心血呀。小小地破费一下,绝对物超所值哦!如有下载和支付问题,请联系我们QQ(微信同号):813200300
本次赞助数额为: 2 元微信扫码支付:2 元
请留下您的邮箱,我们将在2小时内将文件发到您的邮箱
玩的锤子 WASD
isstand = false;
label4.Text = Role.Location.ToString();
if (e.KeyData == Keys.A)//←←←←←←←←←←←←
{
if (Role.Location.X > panel1.Location.X pic_left.Width 10)
{
Role.Location = new Point(Role.Location.X - speed, Role.Location.Y);
}
Role.Image= Properties.Resources.Role_Left1;
Delay(200);
Role.Image = Properties.Resources.Role_Left2;
}
else if (e.KeyData == Keys.W)//↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑
{
Role.Image = Properties.Resources.Standa;
}
else if (e.KeyData == Keys.S)//↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓
{
Role.Image = Properties.Resources.DropDown;
}
else if (e.KeyData == Keys.D)//→→→→→→→→→→→→→→→
{
if (Role.Location.X < panel1.Location.X panel1.Width - Role.Width-pic_right.Width-10)
{
Role.Location = new Point(Role.Location.X speed, Role.Location.Y);
}
Role.Image = Properties.Resources.Role_Right1;
Delay(200);
Role.Image = Properties.Resources.Role_Right2;
}