Build upon a few techniques we learned in past CoderDojo sessions!
Shoot basketball (clones!) with keyboard control and broadcast messages
Animate a sprite with costumes to show a velocity meter
Use variables for basketball motion (velocity and gravity)
Keep track of baskets completed with a Score counter
Determine end of game with a Ball counter
Go To: http://scratch.mit.edu/
Go To: http://scratch.mit.edu/studios/585122/ and click march_madness_starter
Notice the sections: Title, Instructions and Notes and Credits
This will make a copy of the project under your name
It's a good practice to name your project something unique
Set a Sound script + scripts to show which backdrop to display upon start and end of game
We want the Leprechaun to shoot from the throw line
We want the hoop on the backboard and to always remain in front
Set up all variables and our first clone upon start + what to do as a clone
When the "Shot" message is received: start the motion, check for the backboard or hoop "collision" and score!
Check out the costumes: the different costumes represent the velocity bar that will animate. We will use the costume # to determine how hard the ball is thrown.
Upon receiving the "New Shot" message, the velocity meter will animate costumes until the "space" key is pressed to throw a ball, using the velocity.
You built a cool Basketball game! Now, here are a few Challenges:
Add additional costumes for the character when he throws the ball.
Allow the character to move left / right and throw the ball at different angles.