diff options
author | RaindropsSys <contact@minteck.org> | 2023-08-31 22:47:58 +0200 |
---|---|---|
committer | RaindropsSys <contact@minteck.org> | 2023-08-31 22:47:58 +0200 |
commit | 03afd42fdcd52e4a827016828c4ad286de320078 (patch) | |
tree | 0cb77209fdb1d4d192afa2ac6d6c3ada0074661b /src/helper.py | |
parent | e54ac640f1d3f7071a48032e924b04529cbd358f (diff) | |
download | blocks-03afd42fdcd52e4a827016828c4ad286de320078.tar.gz blocks-03afd42fdcd52e4a827016828c4ad286de320078.tar.bz2 blocks-03afd42fdcd52e4a827016828c4ad286de320078.zip |
Updated 5 files, added 2 files and deleted 337 files (automated)
Diffstat (limited to 'src/helper.py')
-rw-r--r-- | src/helper.py | 3 |
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'] |