Hot answers tagged

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
  • 63.4k
1 vote
Accepted

Pset3 (breakout) -- problems initiating score label

You haven't set the location where the label is supposed to appear in initScoreboard. Do it like that: setLocation(label, x, y);
user avatar
  • 7,326
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

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