Questions tagged [bounce]
The bounce tag has no usage guidance.
5
questions
0
votes
1
answer
113
views
Pset3 Breakout: Ball is passing through the paddle despite collision code.
so my ball is passing through my paddle despite the collision code I implemented.
//bounce off paddle and bricks
GObject collision = detectCollision(window, ball);
if (collision != NULL)...
0
votes
1
answer
155
views
Breakout -- ball continues bouncing after it moves past paddle
i'm currently working on breakout.c, but i'm having trouble with the ball continuing to bounce off the bottom even after it drops below the paddle (step 9 of the spec walkthrough). Instead, I want it ...
0
votes
1
answer
227
views
pset 3 breakout - collisions not working
I'm having trouble getting collisions to work in breakout. I wrote my own code, which despite a lot of fixes didn't work, so I attempted to just copy-paste the bounce.c code in an effort to figure out ...
0
votes
1
answer
262
views
pset3 Ball not detecting bricks
I have used detectCollision to make the ball bounce off the paddle. I have tried to use it to make the ball bounce of the bricks but it does not. Actually, it does not compile. This is the piece of ...
1
vote
1
answer
331
views
Breakout - bounce off brick- why do I need to check for object == NULL?
When using detectCollision to get the ball to bounce off the paddle, I just need to check if detectCollison returns the object "paddle" and if so, reverse the movement. But for the brick, I have to ...