public void DrawBee(Graphics g, Rectangle rect) { g.DrawImage(Properties.Resources.Bee_animation_1, rect); }
public Rocket() { recRocket = new Rectangle(X_Rocket, Y_Rocket, 100, 45); }
public LifeSpan() { recLifeSpan = new Rectangle(-10, 0, 30, 30); recShield = new Rectangle(-10, 0, 60, 60); }
// that isnt useful #region //public void Bird_Animator(Timer bird_Timer) //{ // bird_Timer.Interval = 70; // //bird_Timer.Tick += new EventHandler(bird_Timer); // bird_Timer.Start(); //} //public void Bird_Timer_Tick(Control c) //{ // if (Y_Bird + birdPicture.Height <= c.Height && Y_Bird >= 0) // { // Y_Bird += 10; // if (X_Bird + birdPicture.Width >= pipe.X_pipePairs1 && X_Bird + birdPicture.Width <= pipe.X_pipePairs1 + 52) // { // if (Y_Bird <= 250 + pipe.Y_pipeAbove1 || Y_Bird + birdPicture.Height >= pipe.Y_pipeBottom1) // { // return; // } // } // if (X_Bird + birdPicture.Width >= pipe.X_pipePairs2 && X_Bird + birdPicture.Width <= pipe.X_pipePairs2 + 52) // { // if (Y_Bird <= 250 + pipe.Y_pipeAbove2 || Y_Bird + birdPicture.Height >= pipe.Y_pipeBottom2) // { // return; // } // } // } // else // { // Y_Bird += 10; // } //} #endregion public Bird() { recBird = new Rectangle(X_Bird, Y_Bird, 34, 24); }