display combos after t-spin/lines cleard

This commit is contained in:
adrienmalin 2019-09-29 11:46:52 +02:00
parent f0971cd030
commit 80d639fd63
2 changed files with 3 additions and 6 deletions

View File

@ -3,7 +3,6 @@ import sys
import locale
import time
import os
import itertools
try:
import arcade

View File

@ -409,15 +409,13 @@ class TetrisLogic():
ds *= 100 * self.level
lock_score += ds
lock_strings.append(str(ds))
self.show_text("\n".join(lock_strings))
if self.combo >= 1:
lock_strings.append("COMBO x%d" % self.combo)
ds = (20 if nb_lines_cleared==1 else 50) * self.combo * self.level
lock_score += ds
lock_strings.append(str(ds))
if lock_strings:
self.show_text("\n".join(lock_strings))
self.show_text("COMBO x{:n}\n{:n}".format(self.combo, ds))
self.add_to_score(lock_score)