|
private void timerysbz_Tick(object sender, EventArgs e)
{
tyunshi++;
picyunshi.Image = Image.FromFile("1111111111112.gif");//爆炸
picyunshi.Update();
if (tyunshi == 5)
{
tyunshi = 0;
picyunshi.Image = Image.FromFile("姚明.png");
timerysbz.Stop();
picyunshi.Visible = false;
picyunshi.Top = -picyunshi.Height;
picyunshi.Left = myran.Next(20, this.ClientSize.Width - picyunshi.Width) - 10;
}
}
private void timerfjbz_Tick(object sender, EventArgs e)
{
tfeiji++;
picfeiji.Image = Image.FromFile("飞机.png");//爆炸
picfeiji.Update();
if (tfeiji == 50)
{
tfeiji = 0;
picfeiji.Image = Image.FromFile("飞机.png");
timerfjbz.Stop();
if (life == 0)
{
defen = 0;
labdefen.Text = defen.ToString();
timerwudi.Stop();
timeryunshi.Stop();
timerzidan.Stop();
Form1_Load(null, null);
x = 0;
life = 3;
timerlost.Start();
}
}
} |
-
-
-
暴漫.rar
7.56 MB, 下载次数: 440, 下载积分: 金钱 -1
|