Presentation is loading. Please wait.

Presentation is loading. Please wait.

Recap Ball Movement How does ball start its movement initially What happens when it hits the top and bottom What happens when it hits the paddle If you.

Similar presentations


Presentation on theme: "Recap Ball Movement How does ball start its movement initially What happens when it hits the top and bottom What happens when it hits the paddle If you."— Presentation transcript:

1 Recap Ball Movement How does ball start its movement initially What happens when it hits the top and bottom What happens when it hits the paddle If you have time, ask your partner some of your own questions you’re stuck on.

2 BounceOffPaddle “...what happens to your ball when it touches a paddle. You must implement this as a function (a command block). You should name this block BounceOffPaddle” “Each time your ball sprite touches a paddle, it will reverse its direction ……” “….and you will add a random variance in the direction by turning between -15 and 15 degrees from the reversed direction”

3 BounceOffPaddle approach

4 BounceOffPaddle block Let’s now walk through some details of how this is done What type of block is this? How does the ball’s direction change? Using what BYOB block? By how many degrees? When will this block be used? (in relation to the ball’s position)


Download ppt "Recap Ball Movement How does ball start its movement initially What happens when it hits the top and bottom What happens when it hits the paddle If you."

Similar presentations


Ads by Google