Closed Junkkah closed 3 months ago
Unify text and font creation. Font type and size can be inherited from States.
"I have addressed the issue by removing all magic numbers from the codebase. Descriptive variable names have been introduced to replace these magic numbers, enhancing the readability and maintainability of the code.
Additionally, I've centralized the text and font creation process by implementing methods in the Config class. This method now handles rendering text and takes parameters for size, color, and other relevant properties. With these changes, the issue has been resolved.
Remove magic numbers