Pygame font error

后端 未结 3 1132
情深已故
情深已故 2021-01-04 08:06

So I decided to start making a game and I was testing it a bit and then I got this error:

Traceback (most recent call last):
  File \"TheAviGame.py\", line          


        
3条回答
  •  盖世英雄少女心
    2021-01-04 08:46

    You never initialized pygame and pygame.font after importing:

    # imports
    
    pygame.init() # now use display and fonts
    

提交回复
热议问题