Пример #1
0
        public void MakeBubble()
        {
            int randValue = randGen.Next(1, 450);

            bubble newbubble = new bubble(0, randValue, 20);

            left.Add(newbubble);

            randValue = randGen.Next(1, 450);
            bubble newBubble2 = new bubble(this.Width, randValue, 20);

            right.Add(newBubble2);

            BubbleTimer = 0;
        }
Пример #2
0
 public void OnStart()
 {
     hero = new bubble(this.Width / 2 - heroSize / 2, 370, heroSize);
     MakeBubble();
     scoreLabel.Text = player1Score + "";
 }