Ejemplo n.º 1
0
        /// <summary>
        /// Method to draw the balls
        /// </summary>
        private void DrawBalls(Graphics g)
        {
            _balls.Draw(g);

            if (_balls.allBalls.Count == 0)
            {
                ballStart.Draw(ballsToAdd * Game.ballMultiplier, g);
                if (ShotWasTaken)
                {
                    ShotWasTaken = false;
                    ResetPowerups();
                    InitPowerups();
                    MoveRowsDown();
                }
            }
            else
            {
                ballStart.Draw(_balls.ballsLeft, g);
                ShotWasTaken = true;
            }
        }