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 ...
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);
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)
{
...
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.
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
pset3 × 4glabel × 4
breakout × 3
breakout.c × 3
label × 2
loop × 1
spl × 1
scoreboard × 1