All pastes #427825 Raw Edit

Unnamed

public text v1 · immutable
·published 2007-04-07 01:09 UTC
rendered paste body
       int CountBalls = 3;
                
                
                for (int i = 0; i < CountBalls; i++ )
                {Ball ball;

                    ball = new Ball();
                    ball.MVerticalSpeed = 3;
                    ball.SpriteT = content.Load<Texture2D>("soccer_ball") as Texture2D;
                    balz.Add(ball);
                }
painting balls
            spriteB.Begin();
            foreach (Ball ball in balz)
            {
                spriteB.Draw(ball.SpriteT, new Rectangle(ball.SpriteX,ball.SpriteY, 50, 50), Color.White); 
            }
            spriteB.End();