11
1 Scratch Lessons: Rock Paper Scissors, Part 1 1. Open up Photo Booth. Take 4 picturs of your hands: Start, Rock, Paper, and Scissors. 2. Drag all 4 photos onto the desktoop.

Scratch Lessons - TECHBRARIAN paper scissors.pdf · 1 Scratch Lessons: Rock Paper Scissors, Part 1 1. Open up Photo Booth. Take 4 picturs of your hands: Start, Rock, Paper, and Scissors

  • Upload
    others

  • View
    2

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Scratch Lessons - TECHBRARIAN paper scissors.pdf · 1 Scratch Lessons: Rock Paper Scissors, Part 1 1. Open up Photo Booth. Take 4 picturs of your hands: Start, Rock, Paper, and Scissors

1

Scratch Lessons: Rock Paper Scissors, Part 1

1. Open up Photo Booth. Take 4 picturs of your hands: Start, Rock, Paper, and Scissors.

2. Drag all 4 photos onto the desktoop.

Page 2: Scratch Lessons - TECHBRARIAN paper scissors.pdf · 1 Scratch Lessons: Rock Paper Scissors, Part 1 1. Open up Photo Booth. Take 4 picturs of your hands: Start, Rock, Paper, and Scissors

2

3. Click “Choose new sprite from file”.

4. Click “Desktop”.

5. Find the “start position” picture.

6. Click on “Costumes”.

Page 3: Scratch Lessons - TECHBRARIAN paper scissors.pdf · 1 Scratch Lessons: Rock Paper Scissors, Part 1 1. Open up Photo Booth. Take 4 picturs of your hands: Start, Rock, Paper, and Scissors

3

7. Next, click “Edit”.

8. Click the minus magnifier to zoom out. Now, click on the Eraser tool. Switch to a large eraser.

9. Now erase everything except the hand.

Page 4: Scratch Lessons - TECHBRARIAN paper scissors.pdf · 1 Scratch Lessons: Rock Paper Scissors, Part 1 1. Open up Photo Booth. Take 4 picturs of your hands: Start, Rock, Paper, and Scissors

4

10. Now click “Import” to bring in the “rock” position.

11. Select the “rock” position.

12. Just like you did with the “start” position. Click “Edit” .

Page 5: Scratch Lessons - TECHBRARIAN paper scissors.pdf · 1 Scratch Lessons: Rock Paper Scissors, Part 1 1. Open up Photo Booth. Take 4 picturs of your hands: Start, Rock, Paper, and Scissors

5

13. Erase everything but the hand in the “rock” position.

14. Now, repeat steps 10-13 for the paper and scissors pictures.

15. Once you have all 4 positions, label them as shown below.

Page 6: Scratch Lessons - TECHBRARIAN paper scissors.pdf · 1 Scratch Lessons: Rock Paper Scissors, Part 1 1. Open up Photo Booth. Take 4 picturs of your hands: Start, Rock, Paper, and Scissors

6

16. Next, go to google.com

17. Click on “Images”.

18. Search for “Rock”.

19. Once you find the image you want, drag it onto the desktop.

Page 7: Scratch Lessons - TECHBRARIAN paper scissors.pdf · 1 Scratch Lessons: Rock Paper Scissors, Part 1 1. Open up Photo Booth. Take 4 picturs of your hands: Start, Rock, Paper, and Scissors

7

20. Now, repeat steps 18-19 for “Paper” and Scissors.

21. Return to Scratch and click “Choose new sprite from file”.

22. Click on “Desktop” and select your rock.

Page 8: Scratch Lessons - TECHBRARIAN paper scissors.pdf · 1 Scratch Lessons: Rock Paper Scissors, Part 1 1. Open up Photo Booth. Take 4 picturs of your hands: Start, Rock, Paper, and Scissors

8

23. Name your rock sprite “Rock”. Now, click on the “Costumes” tab.

24. Click “Edit” and erase the background like you did with the hand positions.

25. Next, shrink the sprite.

Page 9: Scratch Lessons - TECHBRARIAN paper scissors.pdf · 1 Scratch Lessons: Rock Paper Scissors, Part 1 1. Open up Photo Booth. Take 4 picturs of your hands: Start, Rock, Paper, and Scissors

9

26. Repeat steps 21-25 for the paper and scissors.

27. Now, lets create the code to tell the hand to change positions. Click on the Rock sprite and drag the following code:

Page 10: Scratch Lessons - TECHBRARIAN paper scissors.pdf · 1 Scratch Lessons: Rock Paper Scissors, Part 1 1. Open up Photo Booth. Take 4 picturs of your hands: Start, Rock, Paper, and Scissors

10

28. Repeat this code on paper and scissors (figure the scissors code out for yourself):

29. Next switch to the HUMAN Sprite. So far, our code says if rock, paper, or scissors is clicked they broadcast a message saying they’ve been clicked. Now, let’s tell the HUMAN to switch to the right hand gesture (costume) depending on which one is clicked. Use this code for the HUMAN to switch to the rock gesture if the rock is clicked.

Page 11: Scratch Lessons - TECHBRARIAN paper scissors.pdf · 1 Scratch Lessons: Rock Paper Scissors, Part 1 1. Open up Photo Booth. Take 4 picturs of your hands: Start, Rock, Paper, and Scissors

11

30. Repeat a similar code for paper as shown below. Do the code for Scissors yourself.

You’re Done, But....

Along with posting Rock, Paper, Scissors on your blog, answer the following question:

Predict what the code will look like for the computer hand. How will it be the same as the HUMAN? How will it be different?