Ejemplo n.º 1
0
        public void AddBall()
        {
            Ball ball = new Ball() { Radius = BallRadius };
            ball.Randomize(_graphicsDevice.Viewport.Bounds);

            _balls.Add(ball);
        }
Ejemplo n.º 2
0
        public void Initialize()
        {
            _whiteTex = SolidColorTexture(_graphicsDevice, Color.White);

            Ball ball1 = new Ball() { Radius = BallRadius };
            ball1.Randomize(_graphicsDevice.Viewport.Bounds);

            _balls = new List<Ball> { ball1 };
        }
Ejemplo n.º 3
0
        public void AddBall()
        {
            Ball ball = new Ball()
            {
                Radius = BallRadius
            };

            ball.Randomize(_graphicsDevice.Viewport.Bounds);

            _balls.Add(ball);
        }
Ejemplo n.º 4
0
        public void Initialize()
        {
            _whiteTex = SolidColorTexture(_graphicsDevice, Color.White);

            Ball ball1 = new Ball()
            {
                Radius = BallRadius
            };

            ball1.Randomize(_graphicsDevice.Viewport.Bounds);

            _balls = new List <Ball> {
                ball1
            };
        }