SDL help

I am trying to make a game that you have a player and when you hit with your ball the boxed,the boxes to be dissapeared or deleted from the screen.

So here is my whole source

http://pastebin.com/LyipQLrH


so what should put here:

1
2
3
4
5
  if(CheckCollision(ballX,ballY,ball->w,ball->h,obst3.x,obst3.y,obst3.w,obst3.h)==true)

         {
             velY= -velY;
         }



instead of hit the ball back,to be dissapeared?

Thanks.
Create some kind of variable to indicate whether or not the ball should be drawn.

Then when you want it to disappear, set that variable to 'false'
Topic archived. No new replies allowed.