You. Can simplify self.rect.center = scn.rect.center
Also because you use else, you can't hold multiple directions at the same time. If you want to bounce off the top, then . yvel *=-1
You. Can simplify self.rect.center = scn.rect.center
Also because you use else, you can't hold multiple directions at the same time. If you want to bounce off the top, then . yvel *=-1