Python Pygame doesn't display images correctly

后端 未结 1 860
甜味超标
甜味超标 2021-01-24 11:24

I\'m new to Python and I started learning with \"Python crash course\" by Eric Matthes. I\'m in the beginning of Pygame chapter and I follow the code, but my loaded images alway

1条回答
  •  隐瞒了意图╮
    2021-01-24 12:09

    I presume you are on a Mac, with a relatively new version of SDL. The issue is not with your code, but newer versions of SDL having a bug with Mac OS.

    To resolve, you either need to downgrade your SDL to a version prior to around version 1.2 (it's around there, forgot the exact version), or work on a different operating system.

    It's very annoying.. I ended up installing virtualbox and running Linux on my Mac just to be able to code pygame!

    0 讨论(0)
提交回复
热议问题