So I recently installed the pygame extension for python, but I am having some trouble getting it to work. I am using python version 2.7.8, and on of the pygame versions I have t
I tried running the code and got an error message saying:
TypeError: super() takes at least 1 argument (0 given)
So My conclusion Is that the guy in the video is using Python3.x because if I'm not misstaking super() doesn't require any arguments in 3.x
I don't know if you got this error message but You could at least try my solution:
In Python 2.7.8 super() needs arguments, so you need to modify the code like this:
super(Player, self).__init__() #Line 48 in the example you linked to
super(Wall, self).__init__() # Line 97 in the example
for me that fixed it. Another thing woth thinking about when working with GUI libraries like pygame is that the python GUI can interfere with the pygame code because pygame also tries to create a GUI. To avoid this you can run the program from, for example cmd instead.