From 33ad5afb60163e2725553b748ac93fc92b744843 Mon Sep 17 00:00:00 2001 From: Azalea Gui Date: Tue, 7 Mar 2023 23:08:30 -0500 Subject: [PATCH] [+] Draw cat --- tngame/telnet.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tngame/telnet.py b/tngame/telnet.py index 1e29a94..93dec0e 100644 --- a/tngame/telnet.py +++ b/tngame/telnet.py @@ -60,6 +60,14 @@ async def shell(reader: TelnetReaderUnicode, writer: TelnetWriterUnicode): # Position of the cat x, y = 0, height - ASCII_HEIGHT + # Draw the cat function + def draw_cat(): + log.info(f"Drawing cat at {x}, {y}") + clear() + + # Draw the cat + print_ascii(ASCII_CAT, x, y) + def run(): # Create a new event loop, start the server and wait for it to close