Bricks is a computer game which is played by the single player at a time. In this game a four layer of
bricks is there and you have to knock out the brick by the ball to get the point.For each knock you get 5 points.
You have maximum of four balls and each time you lose the ball 10 marks are deducted from your score.
You have to catch the ball on the paddle which is appearing on the bottom on the screen and if you will not able the catch the ball on the paddle you lose the ball. For moving the paddle use left and right arrow key.
As the ball and paddle are to be moved throughtout the game, we first store their images
in the memory using malloc() function which is used to allocate the memory.After this , the image at new coordinates is set erasing the previous location. When the ball reaches to the boundary it will pushed inside.
bricks is there and you have to knock out the brick by the ball to get the point.For each knock you get 5 points.
You have maximum of four balls and each time you lose the ball 10 marks are deducted from your score.
You have to catch the ball on the paddle which is appearing on the bottom on the screen and if you will not able the catch the ball on the paddle you lose the ball. For moving the paddle use left and right arrow key.
As the ball and paddle are to be moved throughtout the game, we first store their images
in the memory using malloc() function which is used to allocate the memory.After this , the image at new coordinates is set erasing the previous location. When the ball reaches to the boundary it will pushed inside.