5 lines
190 B
Python
5 lines
190 B
Python
|
def draw_text(text, font, color, surface, x, y):
|
||
|
textobj = font.render(text, 1, color)
|
||
|
textrect = textobj.get_rect()
|
||
|
textrect.topleft = (x, y)
|
||
|
surface.blit(textobj, textrect)
|