Grade 8 day lesson plan:
-Introduce Business department & topics
-Using NetSupport and students helping. Complete the following tutorial step by step with students:
Steps of tutorial: (print out for all gr 9 students as reference)
- Go to:
- Select “Try it out” with the image of the scratch cat
To change the background:
- Click on the stage or background image selector and click on “Choose backdrop from library” then select Blue sky option:
To change the Sprite:
- Create a new sprite by clicking on the sprite icon – then choose from the default sprite Scratch has to offer – an apple
Programming the apple:
- Click and drag when green flag is clicked
- Click and drag: and change the value to -5
- Add the forever loop:
- Now set y to 180 so it restarts at the beginning:
- Add an “If” statement to have it go up to the top when it hits the bottom:
- Add a go to “random position” to have it start from different x values
Programming the bowl:
- Delete the cat if not already done and add a new sprite that looks like a bowl. Drag the bowl to the ground.
- While bowl is selected add when green flag is selected:
- Add an “if” statement to move right when the right arrow is pressed:
- We need a forever loop to always check if the right arrow is pressed.
- Now we do the same for the left arrow key and have it move -10 steps:
Run program and regard what is happening!!
Back to Apple Coding:
- Now add the following code to the apple:
- We again need to “forever” check if the apple touchs the bowl, not just when the flag is clicked:
- Now move the apple to the top if it touches:
- We can put all this under one green flag:
Creating a Score:
- Now to go the DATA variables and click on make a variable: call it score
- Add set score to 0 after when green flag is clicked:
- Add change score if touches bowl:
MORE GAME PLAY:
- Duplicate apples create 5 new ones
- Change costume of one to yellow apple and increase score by 2 if they get the yellow one
Students Challenge:
- Change the costume of to a black apple and decrease the score by -5 if they touch it
- End the game if they go under 0 for score
- End the game if they get to a number
End with:
-