Skip to content

Commit

Permalink
press down to drop block
Browse files Browse the repository at this point in the history
  • Loading branch information
Alice committed Nov 29, 2016
1 parent b7fff5f commit de9c4db
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/board.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,10 @@ impl Board {
}
}
Button::Keyboard(Key::Down) => {
// TODO: drop piece to bottom?
// pressing down drops piece to bottom
while self.can_move_current_piece_down() {
self.current_piece.move_down();
}
}
Button::Keyboard(Key::Left) => {
if self.can_move_current_piece_left() {
Expand Down

0 comments on commit de9c4db

Please sign in to comment.