public Ball(Paddle paddle, Content content, InputCommands inputCommands) : base(content.Load<Image>("Ball"), Rectangle.Zero) { this.paddle = paddle; UpdateOnPaddle(); fireBallSound = content.Load<Sound>("PaddleBallStart"); collisionSound = content.Load<Sound>("BallCollision"); RegisterFireBallCommand(inputCommands); }
public Ball(Paddle paddle) : base(new Material(ShaderFlags.Position2DColoredTextured,"Ball"), Rectangle.Zero) { this.paddle = paddle; fireBallSound = ContentLoader.Load<Sound>("PaddleBallStart"); collisionSound = ContentLoader.Load<Sound>("BallCollision"); UpdateOnPaddle(); RegisterFireBallCommand(); Start<RunBall>(); RenderLayer = 5; }
public BallInLevel(Paddle paddle, Level level) : base(paddle) { Level = level; }
public BallInLevel(Paddle paddle, Content content, InputCommands inputCommands, Level level) : base(paddle, content, inputCommands) { this.level = level; }