T-Spin and lines clear on a single line, fix time on resume
This commit is contained in:
parent
72b8d8bc1d
commit
de54f89abb
1
Main.gd
1
Main.gd
@ -187,6 +187,7 @@ func pause(show_controls_ui=true):
|
||||
playing = false
|
||||
$DropTimer.stop()
|
||||
$LockDelay.stop()
|
||||
$Stats.time = OS.get_system_time_secs() - $Stats.time
|
||||
$Stats/Clock.stop()
|
||||
if show_controls_ui:
|
||||
$controls_ui.visible = true
|
||||
|
9
Stats.gd
9
Stats.gd
@ -50,10 +50,11 @@ func _on_Main_piece_dropped(ds):
|
||||
func _on_Main_piece_locked(lines, t_spin):
|
||||
var ds
|
||||
if lines or t_spin:
|
||||
if t_spin:
|
||||
emit_signal("flash_text", T_SPIN_NAMES[t_spin])
|
||||
if lines:
|
||||
emit_signal("flash_text", LINES_CLEARED_NAMES[lines])
|
||||
var text = T_SPIN_NAMES[t_spin]
|
||||
if text:
|
||||
text += " "
|
||||
text += LINES_CLEARED_NAMES[lines]
|
||||
emit_signal("flash_text", text)
|
||||
ds = SCORES[lines][t_spin]
|
||||
goal -= ds
|
||||
$HBC/VBC1/Goal.text = str(goal)
|
||||
|
Loading…
x
Reference in New Issue
Block a user