display combos after t-spin/lines cleard
This commit is contained in:
		| @ -3,7 +3,6 @@ import sys | |||||||
| import locale | import locale | ||||||
| import time | import time | ||||||
| import os | import os | ||||||
| import itertools |  | ||||||
|  |  | ||||||
| try: | try: | ||||||
|     import arcade |     import arcade | ||||||
|  | |||||||
| @ -409,15 +409,13 @@ class TetrisLogic(): | |||||||
|             ds *= 100 * self.level |             ds *= 100 * self.level | ||||||
|             lock_score += ds |             lock_score += ds | ||||||
|             lock_strings.append(str(ds)) |             lock_strings.append(str(ds)) | ||||||
|  |             self.show_text("\n".join(lock_strings)) | ||||||
|  |  | ||||||
|  |  | ||||||
|         if self.combo >= 1: |         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 |             ds = (20 if nb_lines_cleared==1 else 50) * self.combo * self.level | ||||||
|             lock_score += ds |             lock_score += ds | ||||||
|             lock_strings.append(str(ds)) |             self.show_text("COMBO x{:n}\n{:n}".format(self.combo, ds)) | ||||||
|  |  | ||||||
|         if lock_strings: |  | ||||||
|             self.show_text("\n".join(lock_strings)) |  | ||||||
|  |  | ||||||
|         self.add_to_score(lock_score) |         self.add_to_score(lock_score) | ||||||
|  |  | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user