From 3fcb5ebb7348603688fc09700e2a02fe2cbb10d1 Mon Sep 17 00:00:00 2001 From: Azalea Gui Date: Tue, 7 Mar 2023 23:17:58 -0500 Subject: [PATCH] [O] Default center --- tngame/telnet.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tngame/telnet.py b/tngame/telnet.py index 5f117d5..4a730f5 100644 --- a/tngame/telnet.py +++ b/tngame/telnet.py @@ -57,8 +57,8 @@ async def shell(reader: TelnetReaderUnicode, writer: TelnetWriterUnicode): height, width = await get_size() log.info(f"Size: {width}x{height}") - # Position of the cat - x, y = 0, height - ASCII_HEIGHT + # Position the cat at center bottom by default + x, y = (width - ASCII_WIDTH) // 2, height - ASCII_HEIGHT # Draw the cat function def draw_cat():