compatibility with Godot 3.1

This commit is contained in:
adrienmalin
2019-01-21 16:59:47 +01:00
parent 1b5cccd8c9
commit f220739ffc
5 changed files with 76 additions and 76 deletions

View File

@ -100,9 +100,9 @@ func _unhandled_input(event):
if event.is_action_pressed("hard_drop"):
hard_drop()
if event.is_action_pressed("rotate_clockwise"):
current_piece.rotate(Tetromino.CLOCKWISE)
current_piece.turn(Tetromino.CLOCKWISE)
if event.is_action_pressed("rotate_counterclockwise"):
current_piece.rotate(Tetromino.COUNTERCLOCKWISE)
current_piece.turn(Tetromino.COUNTERCLOCKWISE)
if event.is_action_pressed("hold"):
hold()