From 03afd42fdcd52e4a827016828c4ad286de320078 Mon Sep 17 00:00:00 2001 From: RaindropsSys Date: Thu, 31 Aug 2023 22:47:58 +0200 Subject: Updated 5 files, added 2 files and deleted 337 files (automated) --- src/helper.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/helper.py') 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'] -- cgit