11 lines
205 B
Python
11 lines
205 B
Python
from pygame import freetype
|
|
|
|
FONT = None
|
|
|
|
def init():
|
|
global FONT
|
|
FONT = freetype.SysFont('Arial', 16)
|
|
|
|
def draw(surface, position, color, text):
|
|
FONT.render_to(surface, position, text, color)
|