示例#1
0
 public void Land()
 {
     convertShapeToBlocks();
     getLine();
     _shape = _nextShape;
     _nextShape = _factory.Shapemaker();
     if (CheckGameOver(_board) == true) { Exit(); }
 }
示例#2
0
        /// <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
        }
示例#3
0
 public void Land()
 {
     if (CheckGameOver(_board) == true)
     {
         // game over message code
     }
     convertShapeToBlocks();
     getLine();
     _shape = _nextShape;
     _nextShape = _factory.Shapemaker();
 }