12/12/2017 mjb/scratch/scratchintro.2pp.pdf 12/12/2017 2 mjb –December 12, 2017 Oregon State...

download 12/12/2017 mjb/scratch/scratchintro.2pp.pdf 12/12/2017 2 mjb –December 12, 2017 Oregon State University

of 16

  • date post

    09-Aug-2020
  • Category

    Documents

  • view

    0
  • download

    0

Embed Size (px)

Transcript of 12/12/2017 mjb/scratch/scratchintro.2pp.pdf 12/12/2017 2 mjb –December 12, 2017 Oregon State...

  • 12/12/2017

    1

    mjb – December 12, 2017

    Oregon State University Computer Graphics

    Scratch !

    Mike Bailey mjb@cs.oregonstate.edu

    Oregon State University

    http://cs.oregonstate.edu/ mjb/scratch~

    mjb – December 12, 2017

    Oregon State University Computer Graphics

    What Kind of People Need to Tell the Computer Where to Put Things?

  • 12/12/2017

    2

    mjb – December 12, 2017

    Oregon State University Computer Graphics

    Programming from Left-to-Right

    mjb – December 12, 2017

    Oregon State University Computer Graphics

    Programming from Top-to-Bottom

  • 12/12/2017

    3

    mjb – December 12, 2017

    http://www.skirtsandscuffs.com/2011_03_01_archive.html

    When the Green Flag gets waved, what happens?

    mjb – December 12, 2017

    Oregon State University Computer Graphics

  • 12/12/2017

    4

    mjb – December 12, 2017

    Oregon State University Computer Graphics

    Stand Up

    mjb – December 12, 2017

    Oregon State University Computer Graphics

    Stand Up Raise Your Left Hand

  • 12/12/2017

    5

    mjb – December 12, 2017

    Oregon State University Computer Graphics

    Stand Up Raise Your Left Hand

    Put Your Right Hand on Top of Your Head

    mjb – December 12, 2017

    Oregon State University Computer Graphics

    Stand Up Raise Your Left Hand

    Put Your Right Hand on Top of Your Head Turn Around One Circle

  • 12/12/2017

    6

    mjb – December 12, 2017

    Oregon State University Computer Graphics

    Stand Up Raise Your Left Hand

    Put Your Right Hand on Top of Your Head Turn Around One Circle

    Meow Like a Cat Count to 2

    Repeat 3 Times

    mjb – December 12, 2017

    Oregon State University Computer Graphics

    Stand Up Raise Your Left Hand

    Put Your Right Hand on Top of Your Head Turn Around One Circle

    Put Your Hands Down

    Meow Like a Cat Count to 2

    Repeat 3 Times

  • 12/12/2017

    7

    mjb – December 12, 2017

    Oregon State University Computer Graphics

    Stand Up Raise Your Left Hand

    Put Your Right Hand on Top of Your Head Turn Around One Circle

    Put Your Hands Down Sit Down

    Meow Like a Cat Count to 2

    Repeat 3 Times

    mjb – December 12, 2017

    Oregon State University Computer Graphics

    Stand Up Raise Your Left Hand

    Put Your Right Hand on Top of Your Head Turn Around One Circle

    Put Your Hands Down Sit Down Smile !

    Meow Like a Cat Count to 2

    Repeat 3 Times

  • 12/12/2017

    8

    mjb – December 12, 2017

    Oregon State University Computer Graphics

    X

    Y

    mjb – December 12, 2017

    Oregon State University Computer Graphics

    X

    Y

    100 200

    100

    0 0

  • 12/12/2017

    9

    mjb – December 12, 2017

    Oregon State University Computer Graphics

    X

    Y

    100 200

    100

    0 0

    mjb – December 12, 2017

    Oregon State University Computer Graphics

    X

    Y

    -100-200

    -100

    200

    100

    100

  • 12/12/2017

    10

    mjb – December 12, 2017

    Oregon State University Computer Graphics

    X

    Y

    100 200

    100

    -100-200

    -100

    mjb – December 12, 2017

    Oregon State University Computer Graphics

    Scratch Screen Layout

    Script Area “Stage” (i.e., the scene)

    Command Categories

    Commands Sprite Manipulation

    Sprite Selection (the “waiting room”)

    Run your Program!

  • 12/12/2017

    11

    mjb – December 12, 2017

    1. Green Flag puzzle piece 3 Glide pieces

    2. Additional actors 3 Glides for each

    3. Glides in a forever loop

    4. Turn (rotate) and Change size

    5. Turn (rotate) and Change size in Forever loops

    6. Multiple Green Flags

    7. Background

    8. Sound

    A Good Order to Start Doing Things In

    mjb – December 12, 2017

    Oregon State University Computer Graphics

  • 12/12/2017

    12

    mjb – December 12, 2017

    Oregon State University Computer Graphics

    Move an Actor

    mjb – December 12, 2017

    Oregon State University Computer Graphics

    Keep an Actor Moving

  • 12/12/2017

    13

    mjb – December 12, 2017

    Oregon State University Computer Graphics

    mjb – December 12, 2017

    Oregon State University Computer Graphics

    Keep an Actor Spinning

  • 12/12/2017

    14

    mjb – December 12, 2017

    Oregon State University Computer Graphics

    Keep an Actor Changing Size

    mjb – December 12, 2017

    http://www.skirtsandscuffs.com/2011_03_01_archive.html

    When the Green Flag gets waved, does only one car get to start, or all of them?

  • 12/12/2017

    15

    mjb – December 12, 2017

    When the Green Flag gets waved, does only one program get to start, or all of them?

    mjb – December 12, 2017

    Oregon State University Computer Graphics

  • 12/12/2017

    16

    mjb – December 12, 2017

    Oregon State University Computer Graphics