Thursday

Programming for kids - Course 3 # Bounce

Let us look at the Fifteenth stage of the Third course in Code.org code studio. Here you can create a bouncing Ball game. There are several event handlers that let you decide when the ball will bounce, when the paddle will move using arrow keys on the keyboard, when a point is scored and a new ball is launched. There are 10 levels in this stage.


https://studio.code.org/s/course3/stage/15/puzzle/1

Below are the images of each level along with the code needed to complete that level.

Level 1

You need to attach a block to the event handler. When Left arrow is the event handler. When you press Run button, a yellow colored ball is launched. You can use the Left arrow key to move the paddle in the game. When the ball hits the paddle it bounces. You need to make the ball reach the finish target displayed by a Red colored flag.


Level 2

We will assign "move left" and "move right" to Left Arrow and the Right Arrow.This way we can move the paddle to the left as well as to the right.




Level 3

We will assign "move up" to the Up Arrow



Level 4

We will assign respective movements to all the four Arrow keys.



Level 5


We will make the ball to bounce when the ball hits the Paddle. Remember, if you do not assign the "bounce ball" block to the "when ball hits paddle", then it will not bounce. 



Level 6

Now we will make the ball to bounce whenever it will hit the paddle as well as any of the walls



Level 7

Assign Left, Right movement and Bounce.



Level 8

Score a point when ball is in the goal



Level 9



Level 10


Design the game any way you like. After you have completed coding and Run the game, if you click on Finish you will get a link for your newly created game which is now online. You can share this link with your friends, family to let them play the game that you created.  





Featured Post

Creating Games in Scratch for ICSE Class 6

An Introduction to Creating Games in Scratch  for ICSE Class 6 Hello friends, I hope you have already read the previous post on An Int...