13 lines
321 B
Python
13 lines
321 B
Python
|
import pygame.font
|
||
|
import os
|
||
|
|
||
|
SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
|
||
|
|
||
|
|
||
|
class RegularText:
|
||
|
def __init__(self, text):
|
||
|
font = pygame.font.Font(SCRIPT_DIR + '/../resources/Tuffy_Bold.ttf', 32)
|
||
|
self.surface = font.render(text, True, (0, 0, 0))
|
||
|
self.rect = self.surface.get_rect()
|
||
|
|