Pygame font error

后端 未结 3 1126
情深已故
情深已故 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:38

    You put None in the font:

    font = pygame.font.Font(None, 25)
    

    You can’t do that. You have to put a type of font there.

    And you should call pygame.init().

提交回复
热议问题