public void Land() { convertShapeToBlocks(); getLine(); _shape = _nextShape; _nextShape = _factory.Shapemaker(); if (CheckGameOver(_board) == true) { Exit(); } }
/// <summary> /// LoadContent will be called once per game and is the place to load /// all of your content. /// </summary> protected override void LoadContent() { // Create a new SpriteBatch, which can be used to draw textures. _spriteBatch = new SpriteBatch(GraphicsDevice); _factory = new Factory(); _shape = _factory.Shapemaker(); _nextShape = _factory.Shapemaker(); _board = new List<Block>(); // TODO: use this.Content to load your game content here }
public void Land() { if (CheckGameOver(_board) == true) { // game over message code } convertShapeToBlocks(); getLine(); _shape = _nextShape; _nextShape = _factory.Shapemaker(); }