delays
This commit is contained in:
parent
d972725c03
commit
4e33f3f78d
@ -29,9 +29,9 @@ var playing = false
|
|||||||
|
|
||||||
func new_game(level):
|
func new_game(level):
|
||||||
$Start.visible = false
|
$Start.visible = false
|
||||||
$Matrix/GridMap.clear()
|
|
||||||
next_piece = random_piece()
|
next_piece = random_piece()
|
||||||
autoshift_action = ""
|
autoshift_action = ""
|
||||||
|
$LockDelay.wait_time = 0.5
|
||||||
$MidiPlayer.position = 0
|
$MidiPlayer.position = 0
|
||||||
$Stats.new_game(level)
|
$Stats.new_game(level)
|
||||||
new_piece()
|
new_piece()
|
||||||
@ -203,12 +203,13 @@ func game_over():
|
|||||||
|
|
||||||
func _on_ReplayButton_pressed():
|
func _on_ReplayButton_pressed():
|
||||||
$ReplayButton.visible = false
|
$ReplayButton.visible = false
|
||||||
pause($Start)
|
|
||||||
remove_child(next_piece)
|
remove_child(next_piece)
|
||||||
remove_child(current_piece)
|
remove_child(current_piece)
|
||||||
if held_piece:
|
if held_piece:
|
||||||
remove_child(held_piece)
|
remove_child(held_piece)
|
||||||
held_piece = null
|
held_piece = null
|
||||||
|
$Matrix/GridMap.clear()
|
||||||
|
pause($Start)
|
||||||
|
|
||||||
func _notification(what):
|
func _notification(what):
|
||||||
match what:
|
match what:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user