Exemple #1
0
 private void _animationTimer_Tick(object sender, EventArgs e)
 {
     _alien.Move();
     foreach (Bomb bomb in _bombs)
     {
         bomb.Move();
     }
     if (_randomNumberGenerator.NextDouble() < BOMB_PROBABILITY)
     {
         Bomb bomb = _alien.DropBomb();
         _bombs.Add(bomb);
     }
     _pictureBox.Refresh();
 }