summaryrefslogtreecommitdiff
path: root/src/helper.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/helper.py')
-rw-r--r--src/helper.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/helper.py b/src/helper.py
index 0504a58..669ea1b 100644
--- a/src/helper.py
+++ b/src/helper.py
@@ -4,6 +4,9 @@ from math import floor
texture_map = pygame.image.load('./assets/textures/texture_atlas.png')
+def text(text, size, color):
+ return pygame.font.Font("./assets/font/main.ttf", size).render(text, False, color)
+
def get_block_texture(block):
return blocks[block]['texture']