From 998cf18eb4e1c0a8270aa6126ade36deb3234bb9 Mon Sep 17 00:00:00 2001 From: adrienmalin <41926238+adrienmalin@users.noreply.github.com> Date: Mon, 11 Feb 2019 00:43:32 +0100 Subject: [PATCH] blink high score --- terminis/terminis.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/terminis/terminis.py b/terminis/terminis.py index d39633b..7bf4a42 100644 --- a/terminis/terminis.py +++ b/terminis/terminis.py @@ -437,11 +437,11 @@ class Stats(Window): def refresh(self): self.draw_border() + self.window.addstr(2, 2, "SCORE\t%d" % self.score) if self.score >= self.high_score: - self.window.addstr(2, 2, "SCORE\t%d" % self.score, curses.A_BOLD|curses.A_BLINK) + self.window.addstr(3, 2, "HIGH\t%d" % self.high_score|curses.A_BLINK) else: - self.window.addstr(2, 2, "SCORE\t%d" % self.score) - self.window.addstr(3, 2, "HIGH\t%d" % self.high_score) + self.window.addstr(3, 2, "HIGH\t%d" % self.high_score) t = time.localtime(time.time() - self.time) self.window.addstr(4, 2, "TIME\t%02d:%02d:%02d" % (t.tm_hour-1, t.tm_min, t.tm_sec)) self.window.addstr(5, 2, "LEVEL\t%d" % self.level)