示例#1
0
        private void winnerTimer_Tick(object sender, EventArgs e)
        {
            //moving the "winner" up
            b.WinMove();
            //making followers
            if (b.y > this.Height / 4 - b1size / 2)
            {
                followercounter++;
            }

            if (followercounter == 3)
            {
                FollowerMaker();
            }

            if (b.y < 0)
            {
                otherscounter++;
                followers.Clear();
                winnerLabel.Visible = true;
                winnerLabel.Text    = "You are the winner!";
            }

            if (otherscounter == 1)
            {
                OthersMaker();
            }

            Refresh();
        }