Skip to content Skip to sidebar Skip to footer

Python Pygame Doesn't Display Images Correctly

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 always look

Solution 1:

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!


Post a Comment for "Python Pygame Doesn't Display Images Correctly"