The error:
Error Traceback (most recent call last):
File "/home/enrique/Dropbox/Public/pygametut3.py", line 41, in <module>
pix = MovingPixel(width/2, height/2)
TypeError: this constructor takes no arguments
The Code:
#Creat a moving pixel
pix = MovingPixel(width/2, height/2)
while running:
pix.move()
if pix.x <= 0 or pix.x >= width or pix.y <= 0 or pix.y >= height:
print "Crash"
running = False
Because
MovingPixelneeds to be instantiated with no arguments: