Summer 1
Summer 1
Mandarin's mighty variables game!
We leant about how variables are like items in a box. The box has a label on and the variable can help you to count how many items have gone into the box.
- Riley
In Scratch, the variables are the orange blocks. You have to make your own variable and give it a name. Then you can tell it to add one to the variable if something happens. In this game, we add one to the variable "Apple" if the apple touches the box.
- Aisha
First, we programmed the bowl to move right or left when the right or left arrow keys are pressed.
- Maqsood
Then we had to create a variable for "Score". When the apple touches the bowl, the score variable increases by one and is displayed in the corner of the game screen.
- Maqsood
Play our game!