tetris
Diffstat (limited to 'TetrisPiece.gd')
| -rw-r--r-- | TetrisPiece.gd | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/TetrisPiece.gd b/TetrisPiece.gd index 9d9dc38..cb1da80 100644 --- a/TetrisPiece.gd +++ b/TetrisPiece.gd @@ -72,3 +72,8 @@ func rotate(matrix: Array, cw := true): shape = s return false return true + + +func fall(matrix: Array) -> void: + while move(Vector2.DOWN, matrix): + continue |