Upper Elementary
Computer Science
Clones: Throwing Acorns Game
Objective
Students will be able to create a throwing acorns game using clones.
Vocabulary
Clone: a copy of a sprite that is made while a program is running
Clones Review
A clone is a copy of a sprite that is made while a program is running.
Each clone has the same costumes, sounds, and scripts as the original sprite, but acts independently.
Why do we use clones?
This block creates a clone of the selected sprite. This block can be placed at any point in a program.
When a sprite is cloned, the clone will run the code beneath this block.
This block deletes the clone. This must be at the end of the clone’s code.
How do we use clones?
What will happen when Scout is clicked?
The acorn will be cloned.
Guided Practice
You will create an acorn throwing game using clones!
The parts of a program that are created for you are called Starter Code. The basket sprite is programmed to move up and down forever.
Starter Code
Program Scout to start the game.
Create a clone of the acorn sprite.
Set the starting position of the clone.
Program the acorn clone to move.
Program the acorn clone to delete.
Create a score variable.
Set the score and basket costume.
Program the basket to change.
Independent Practice
Play, modify, and debug your game.
Change the speed of the acorn clones.
Change the score by -1 if the acorn hits the edge.
As you make changes, make sure your game is working properly.
If you find a bug or an error, debug or fix it as you go!
Extensions
If you have time…
Customize your game by:
Showcase!
Reflection
What would this game look like without clones of the acorn sprite?