示例#1
0
文件: Form1.cs 项目: hero212110/Taiko
        private void RedTaikoMoveTimer2_Tick(object sender, EventArgs e)
        {
            downposition    += 10;
            RedBPicture.Top += 10;

            if (downposition >= 423)
            {
                RedTaikoMoveTimer2.Stop();
                RedTaikoMoveTimer.Start();
            }
        }
示例#2
0
文件: Form1.cs 项目: hero212110/Taiko
 private void Form1_Load(object sender, EventArgs e)
 {
     this.GameStartButton.BackColor       = Color.Transparent;
     this.GameStartButton.Parent          = this.HomeBG;
     this.GameInstructionButton.BackColor = Color.Transparent;
     this.GameInstructionButton.Parent    = this.HomeBG;
     this.GameExitButton.BackColor        = Color.Transparent;
     this.GameExitButton.Parent           = this.HomeBG;
     this.TaikoProPicture.BackColor       = Color.Transparent;
     this.TaikoProPicture.Parent          = this.HomeBG;
     this.RedBPicture.BackColor           = Color.Transparent;
     this.RedBPicture.Parent = this.HomeBG;
     RedTaikoMoveTimer.Start();
 }
示例#3
0
文件: Form1.cs 项目: hero212110/Taiko
        private void RedTaikoMoveTimer_Tick(object sender, EventArgs e)
        {
            if (downposition > 345)
            {
                if (downposition <= 423)
                {
                    downposition    -= 10;
                    RedBPicture.Top -= 10;
                }
            }

            else if (downposition <= 345)
            {
                RedTaikoMoveTimer.Stop();
                RedTaikoMoveTimer2.Start();
            }
        }