Fast and Furious Objects

Variables and Movement

Transcript


Do this

Write the program in the video (below) and test it.

Change the value that is added to the variable. Test a negative value as well. There are two examples below.

ballX = ballX + 5;
ballX = ballX - 1;

What does "int" mean in the expression int ballX = 0;
The more the variable increases, the...

Educator notes


A Meteor, Pipe or a Raindrop?

Transcript


Do this

Write the raindrop-program in the video (below) and test it. Choose your own filling color.

Also try putting the variable “meteor” inside the fill command to change the color-values!


What happens when you use the variable "meteor" as a parameter of fill-command?

Educator notes


Practicing Variables


Do this
Complete the five multiple-choice -questions below and continue forward!


What does the program above draw?

What does the program above draw?

What happens in the program animated above?

What happens in the program animated above?

Educator notes