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 void GetNewBlock() { RandomBlock = rand.Next(0, 7); TetScore = TetScore + 350; blocks = new Blocks(content, BlocksArray.GetValue(RandomBlock).ToString(), Color.White, this, ball); }