2 votes
Accepted

Ball moving problems

The ball gets stuck in the paddle when the paddle hits the side of the ball. I'm not particularly sure how exactly you tried to implement if the ball is moving down move the ball up but my ...
  • 17.4k
2 votes
Accepted

Pset3 Breakout: Question on variable scope in while loop

You're on the right track, but there's an additional issue going on. Think of scope this way: a variable only exists within the curly braces that immediately surround it. So, when you declare them ...
  • 64.6k
1 vote

Pset3 Breakout: Question on variable scope in while loop

Whoops, sorry guys. Just realized that for the latter situation, when the code goes through the If statement then loops back to the top of the while statement, the velocities get assigned back to ...
1 vote

ball colliding with scoreboard

I think this has to do with your code for detecting collisions. As of now, the only check performed is if a collision with something occurred or not. There is no differentiation between colliding with ...

Only top scored, non community-wiki answers of a minimum length are eligible