12/12/2017 scratchweb.engr.oregonstate.edu/~mjb/scratch/scratchintro.2pp.pdf12/12/2017 2 mjb...

Post on 09-Aug-2020

6 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

12/12/2017

1

mjb – December 12, 2017

Oregon State UniversityComputer Graphics

Scratch !

Mike Bailey

mjb@cs.oregonstate.edu

Oregon State University

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

mjb – December 12, 2017

Oregon State UniversityComputer Graphics

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

12/12/2017

2

mjb – December 12, 2017

Oregon State UniversityComputer Graphics

Programming from Left-to-Right

mjb – December 12, 2017

Oregon State UniversityComputer 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 UniversityComputer Graphics

12/12/2017

4

mjb – December 12, 2017

Oregon State UniversityComputer Graphics

Stand Up

mjb – December 12, 2017

Oregon State UniversityComputer Graphics

Stand Up

Raise Your Left Hand

12/12/2017

5

mjb – December 12, 2017

Oregon State UniversityComputer Graphics

Stand Up

Raise Your Left Hand

Put Your Right Hand on Top of Your Head

mjb – December 12, 2017

Oregon State UniversityComputer 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 UniversityComputer 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 UniversityComputer 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 UniversityComputer 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 UniversityComputer 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 UniversityComputer Graphics

X

Y

mjb – December 12, 2017

Oregon State UniversityComputer Graphics

X

Y

100 200

100

00

12/12/2017

9

mjb – December 12, 2017

Oregon State UniversityComputer Graphics

X

Y

100 200

100

00

mjb – December 12, 2017

Oregon State UniversityComputer Graphics

X

Y

-100-200

-100

200

100

100

12/12/2017

10

mjb – December 12, 2017

Oregon State UniversityComputer Graphics

X

Y

100 200

100

-100-200

-100

mjb – December 12, 2017

Oregon State UniversityComputer Graphics

Scratch Screen Layout

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

CommandCategories

CommandsSprite Manipulation

Sprite Selection(the “waiting room”)

Run your Program!

12/12/2017

11

mjb – December 12, 2017

1. Green Flag puzzle piece3 Glide pieces

2. Additional actors3 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 UniversityComputer Graphics

12/12/2017

12

mjb – December 12, 2017

Oregon State UniversityComputer Graphics

Move an Actor

mjb – December 12, 2017

Oregon State UniversityComputer Graphics

Keep an Actor Moving

12/12/2017

13

mjb – December 12, 2017

Oregon State UniversityComputer Graphics

mjb – December 12, 2017

Oregon State UniversityComputer Graphics

Keep an Actor Spinning

12/12/2017

14

mjb – December 12, 2017

Oregon State UniversityComputer 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 UniversityComputer Graphics

12/12/2017

16

mjb – December 12, 2017

Oregon State UniversityComputer Graphics

top related