The pygame font system was not initialized before attempting to use it, leading to a runtime error. This PR addresses the issue by initializing the font module early in the program's execution.
Summary
Added pygame.font.init() in snake_game_py/main.py after initializing pygame to ensure the font module is ready for use.
Fixes #20.
To checkout this PR branch, run the following command in your terminal:
git checkout sweep/fix-font-initialization
To get Sweep to edit this pull request, leave a comment below or in the code. Leaving a comment in the code will only modify the file but commenting below can change the entire PR.
Description
The pygame font system was not initialized before attempting to use it, leading to a runtime error. This PR addresses the issue by initializing the font module early in the program's execution.
Summary
pygame.font.init()
insnake_game_py/main.py
after initializing pygame to ensure the font module is ready for use.Fixes #20.
To checkout this PR branch, run the following command in your terminal:
To get Sweep to edit this pull request, leave a comment below or in the code. Leaving a comment in the code will only modify the file but commenting below can change the entire PR.