Пример #1
0
 private void DropTetrimino(TetrisState state)
 {
     RemoveTetrimino(state, well);
     while (grid.IsEmpty(state.Down()))
     {
         state.Y++;
     }
     AddTetrimino(state, well);
     AddTetriminoToGrid(state);
 }
Пример #2
0
 private void Tick(GameTime gameTime)
 {
     if (grid.IsEmpty(state.Down()))
     {
         TranslateTetrimino(state, new Point(0, 1));
     }
     else
     {
         AddTetriminoToGrid(state);
     }
 }