From 70df24894d1cb0f2897442c64a3b7e460ed6ff78 Mon Sep 17 00:00:00 2001 From: Aineopintojen-harjoitustyo-Algoritmit-j Date: Tue, 30 Jan 2024 09:08:20 +0200 Subject: Adding level-info on statusline. --- tui/ansi_draw.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tui/ansi_draw.py') diff --git a/tui/ansi_draw.py b/tui/ansi_draw.py index dd304d0..143874d 100644 --- a/tui/ansi_draw.py +++ b/tui/ansi_draw.py @@ -5,8 +5,8 @@ from .static import TileTypes class AnsiDraw(): """ AnsiDraw - "piirtelee" näytölle kirjailmilla """ - def __init__(self, height = 15): - print(end="\n"*height) + def __init__(self, height = 9, name = ""): + print(end='\n'*height+name+": Peli alkaa.") def __del__(self): print() -- cgit v1.2.3