Tuesday, 24 October 2017

making ball bounce diagonally and bounce off walls to make the game playable

When the ball dropped, I make the paddle to redirect on 15° sharply. However when it hit the wall it made the ball stuck like with the top tiles. when figuring out, my teacher finds another behaviour where it can bounce off the side walls from left to right. Which only goes down an angle when collided, then we angled it to 40° so it can bounce off when going up and down. After that, I make a few tweeks on the paddle movement and placement to match the speed of the ball when bounced. Also I made the blocks collided on the left and right to make it easy to complete. And that is how I finished making coding of this game.

No comments:

Post a Comment