Skip to content
Snippets Groups Projects
Commit ec0f1aa9 authored by Jantz's avatar Jantz
Browse files

Moved font size and margin to GUI class

parent 9d7173c7
No related branches found
No related tags found
No related merge requests found
......@@ -7,8 +7,10 @@ class GUI:
def __init__(self):
"""Initializes the gui object."""
self.font_path = "assets/fonts/Moon_Dance/MoonDance-Regular.ttf"
self.font = pg.font.Font(self.font_path, 64)
self.font_color = (255, 255, 255)
self.font_size = 64
self.font = pg.font.Font(self.font_path, self.font_size)
self.margin = 32
def render_text(self, text: str) -> pg.Surface:
"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment