public void Draw() { //Engine.Instance.SpriteBatch.Draw(BG, new Rectangle(GridArea.X - Block.SIZE, GridArea.Y, GridArea.Width + 2 * Block.SIZE, GridArea.Height + Block.SIZE), Color.Black); foreach (Block b in Blocks) { if (b != null) { b.Draw(); } } // Draw border for (int y = 0; y <= ColCnt; y++) { BorderBlock.DrawForBorder(new Vector2(GridArea.X - Block.SIZE, GridArea.Y + y * (Block.SIZE + BLOCK_SPACING))); BorderBlock.DrawForBorder(new Vector2(GridArea.Right, GridArea.Y + y * (Block.SIZE + BLOCK_SPACING))); } for (int x = 0; x < RowCnt; x++) { BorderBlock.DrawForBorder(new Vector2(GridArea.X + x * (Block.SIZE + BLOCK_SPACING), GridArea.Bottom)); } }