improve lock
This commit is contained in:
parent
e6d4ef2c67
commit
cad0577e54
@ -137,6 +137,10 @@ func _on_DropTrailDelay_timeout():
|
|||||||
func _on_DropTimer_timeout():
|
func _on_DropTimer_timeout():
|
||||||
current_piece.move(movements["soft_drop"])
|
current_piece.move(movements["soft_drop"])
|
||||||
|
|
||||||
|
func _on_LockDelay_timeout():
|
||||||
|
if not current_piece.move(movements["soft_drop"]):
|
||||||
|
lock()
|
||||||
|
|
||||||
func lock():
|
func lock():
|
||||||
if $Matrix/GridMap.lock(current_piece):
|
if $Matrix/GridMap.lock(current_piece):
|
||||||
var t_spin = current_piece.t_spin()
|
var t_spin = current_piece.t_spin()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user