예제 #1
0
파일: Grid.cs 프로젝트: AndrewSalls/Tetris
        public void QuickDrop()
        {
            while (_current.CanMoveDown(_grid))
            {
                _current.MoveDown();
            }

            _lastWasRotate = false;
            ResetBlockData();
        }
예제 #2
0
파일: Block.cs 프로젝트: AndrewSalls/Tetris
        public Block GetGhostBlock(Color?[,] grid)
        {
            Block ghost = new Block(gridLayout, _color, _xLocation, _yLocation, _letter);

            while (ghost.CanMoveDown(grid))
            {
                ghost.MoveDown();
            }

            return(ghost);
        }