Download presentation
Presentation is loading. Please wait.
Published byNigel Samuel Greene Modified over 9 years ago
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 90-90 0 180 90-90 0 180 45 -135
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)
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.