subject

I'm getting an error when I try to add collision to the cube. How do I fix it? The code is attached as a .txt file.
Error:
Hello from the pygame community. https://www. pygame. org/contribute. html
Traceback (most recent call last):
File "main. py", line 185, in
ballplay. update()
File "main. py", line 101, in update
self. check_collision()
File "main. py", line 91, in check_collision
if cubeplay. collide(self. rect. midtop) or cubeplay. collide(self. rect. midbottom): self. vy = -self. vy
TypeError: collide() missing 1 required positional argument: 'y'

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 15:30
When creating a budget, log fixed expenses before income. after income. after savings. at the top.
Answers: 1
question
Computers and Technology, 23.06.2019 04:00
Another name for addicting games.com
Answers: 1
question
Computers and Technology, 23.06.2019 13:30
Font size, font style, and are all aspects of character formatting.
Answers: 2
question
Computers and Technology, 23.06.2019 19:30
2. fluorine and chlorine molecules are blamed fora trapping the sun's energyob forming acid rainoc producing smogod destroying ozone molecules
Answers: 2
You know the right answer?
I'm getting an error when I try to add collision to the cube. How do I fix it? The code is attached...
Questions
question
Physics, 08.02.2021 09:10
Questions on the website: 13722367