From de54f89abb4bf05cb241e516724e7fcba33974a6 Mon Sep 17 00:00:00 2001 From: adrienmalin <41926238+adrienmalin@users.noreply.github.com> Date: Wed, 2 Jan 2019 17:05:57 +0100 Subject: [PATCH] T-Spin and lines clear on a single line, fix time on resume --- Main.gd | 1 + Stats.gd | 9 +++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Main.gd b/Main.gd index bed8f6a..b15e66f 100644 --- a/Main.gd +++ b/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 diff --git a/Stats.gd b/Stats.gd index 0fa000b..1ca8d3f 100644 --- a/Stats.gd +++ b/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)