Questions tagged [breakout]

Tag for questions related to pset3, Breakout.

Filter by
Sorted by
Tagged with
0
votes
1answer
113 views

pset3 breakout window compilation shows a fatal error

I'm struggling at the starting point of breakout in pset3. I've downloaded the breakout set using wget http://cdn.c50.net/2014/fall/lectures/4/m/scr4m.zip according to the CS50 2015 instruction. It ...
4
votes
4answers
1k views

Running breakout on Mac OS X

There's a similar question about running breakout on Linux variants: Can't run Breakout outside of appliance My question is specifically about compiling breakout (and hence SPL) on Mac OS X. So ...
1
vote
1answer
712 views

Why does the ball glide along the paddle whenever it touches its sides?

I have no idea why the ball will glide through the paddle when the side of the paddle is hit. It is not the same as normal case when the ball hits the top of the paddle and it bounces back. I have ...
2
votes
2answers
272 views

Breakout slows down just before finishing the game

Just before finishing a game of Breakout, the game start to move very slow and the paddle behaves weirdly. The game works fine for the first 40 bricks. What causes this? This is my code: GObject ...
1
vote
2answers
674 views

Can't run Breakout outside of appliance

I have just finished implementing Breakout, and tried running it outside of the appliance in my Debian machine, but i get the following error, even though it's the same directory that's shared between ...
5
votes
1answer
687 views

Is something wrong with getType(object)?

For pset4, in this code(in main, to check collision of ball and anything else): GObject object = detectCollision(window, ball); if (strcmp(getType(object), "GRect") == 0) { ...
3
votes
1answer
448 views

Bricks are not available to the detectCollision function

My detectCollision function detects collisions between ball and paddle, but not between ball and bricks. Bricks 'exist' in 'window' but they don't exist in main(). I thought detectCollision might ...
1
vote
1answer
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 ...
0
votes
1answer
401 views

pset4 ball won't move on click?

I'm having some trouble getting the ball to move when the user clicks at the start of the game. I have the code below positioned in main, right after everything is instantiated, and before the while (...
0
votes
1answer
504 views

PSET4: error: Found “result” when expecting “,”

When the updateScoreboard function is called, it throws the above error. The function (all pre-written code) is as follows: void updateScoreboard(GWindow window, GLabel label, int points) { // ...
0
votes
2answers
431 views

Pset3 (breakout) — problems initiating score label

Below is the code I'm using to initiate the label showing the score. Unfortunately, the label doesn't appear on the screen, and I'm clueless as to why that is the case. I'd very much appreciate any ...
0
votes
3answers
194 views

So close on Breakout Problem set 3

When I run breakout.c with clang breakout.c it gives me "errors" EDIT: I also run this with make breakout (removeing the row_space) and gives me this ' breakout.c:(.text+0x1b8): undefined reference ...