Skip to content

Commit

Permalink
Move cube down one layer at a time should get some penalty
Browse files Browse the repository at this point in the history
  • Loading branch information
gyk committed Mar 22, 2014
1 parent 8859b2f commit 1846866
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion BlockOutLine.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,8 @@ def keyPressEvent(self, event):
elif event.key() == Qt.Key_Down:
self.pit.move_cube(NEGATIVE_Y)
elif event.key() == Qt.Key_PageDown:
self.pit.move_down()
if self.pit.move_down():
self.active_score = max(self.active_score - 1, 0)

## Drop
elif event.key() == Qt.Key_Space:
Expand Down

0 comments on commit 1846866

Please sign in to comment.