Add a function in order to display text

This commit is contained in:
Shadow15510 2021-11-08 21:02:41 +01:00
parent 63083fcea1
commit 6aec09023c
1 changed files with 8 additions and 1 deletions

View File

@ -1,4 +1,4 @@
# Asci (version 1.5.1)
# Asci (version 1.5.2)
class Screen:
def __init__(self, screen_width=21, screen_height=6):
@ -250,3 +250,10 @@ def read_event(xp, event):
raise TypeError("event is of type {} instead of list".format(type(event)))
return Event(*event)
def print_text(text):
for i in text_formater(text):
print("\n" * 7)
print(i)
input()