public Ball(ContentManager content, Paddle p) { ballText = content.Load<Texture2D>(@"images/Game/Ball"); ballRect = new Rectangle(720, 150, 15, 15); _content = content; Paddle = p; this.state = new BallStart(this, this.Paddle); XSpeed = 0; Direction = 1; }
//Settings //ConstructorMovables public Game(ContentManager content) { arial = content.Load<SpriteFont>(@"arial"); gamebg = content.Load<Texture2D>(@"images/Backgrounds/GameBG"); StopGame = content.Load<Texture2D>(@"images/Buttons/StopGame"); paddle = new Paddle(content); ball = new Ball(content, paddle); Tet = new Tetris(content, paddle, ball); StopGameRect = new Rectangle(1100, 650, StopGame.Width, StopGame.Height); _content = content; }
public Tetris(ContentManager c, Paddle p, Ball b) { BlocksArray = new string[]{ "BackLForm", "BackZForm", "IForm", "SquareForm", "TForm", "ZForm", "LForm"}; content = c; this.BlocksList = new List<Blocks>(); blocks = new Blocks(content, "BackZForm", Color.White, this, b); ball = b; paddle = p; this.arial = content.Load<SpriteFont>("arialscore"); rand = new Random(); this.TetDone = false; this.OldBlockList = new List<OldBlocks>(); }
public PaddleDown(Paddle p) { this.paddle = p; }
public PaddleNoMovement(Paddle p) { this.paddle = p; }
public BallStart(Ball b, Paddle p) { this.Ball = b; this.Paddle = p; }
public PaddleUp(Paddle p) { this.paddle = p; }