2 votes
Accepted

Why won't my scoreboard appear in breakout.c?

Irene is right to suggest what she did, but that's not your problem. Your code is detecting a collision between the ball and the score. When it detects the collision, it removes the object, which ...
user avatar
  • 64.1k
1 vote
Accepted

Breakout.c: GLabel Looping

You could call the initScoreboard() function to create the new GLabel, like this: GLabel final = initScoreboard(window); setFont(final, "SansSerif-40"); setColor(final, "GREEN"); if (bricks) { ...
user avatar
  • 18.4k
1 vote

Breakout: How do I remove a GLabel?

I think this will work: removeGWindow(window, try_again); Let me know in the comments if it doesn't so I can investigate more.
user avatar
  • 7,326
1 vote
Accepted

breakout - ball takes out too many bricks

Probably the ball hits a brick, the velocity on the y-axis gets inverted and the ball goes down, the ball hits another nearby brick, the velocity on the y-axis gets inverted again and the ball goes up ...
user avatar
  • 17.4k

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