30 min introduction to Scratch

30 min intro to scratch l.jpg
1 / 28
0
0
1248 days ago, 461 views
PowerPoint PPT Presentation
30 min Scratch July 2009. 2. Targets of Scratch unit. Introduction to visual programming environmentIntro to programming with multimediaStory-telling | music-production | diversion makingIntro to programming ideas questions and qualities grouping, redundancy conditions, occasions, I/O. For educators.

Presentation Transcript

Slide 1

30 min introduction to Scratch A Quick-and-Dirty approach Leaving bunches of investigation for what's to come. (5 hour lesson arrange accessible) 30 min Scratch July 2009

Slide 2

Objectives of Scratch unit Intro to visual programming condition Intro to programming with interactive media Story-telling | music-production | amusement making Intro to programming ideas protests and characteristics grouping, redundancy conditions, occasions, I/O For educators 30 min Scratch July 2009

Slide 3

Secondary targets Increase understudy abilities with PCs Increase understudy enthusiasm for programming Student accomplishment on fun extend Learn Cartesian directions, remove calculations, and so on 30 min Scratch July 2009

Slide 4

Computer researchers Create answers for issues utilizing PCs Study data Invent calculations Write projects to execute the calculations Reuse a considerable measure of existing system and machine parts 30 min Scratch July 2009

Slide 5

Start scratch and how about we go! Tap on the feline symbol Or, discover "scratch" under "Projects" When home, download from www.scratch.mit.edu Scratch programming condition comes up rapidly 30 min Scratch July 2009

Slide 6

Click on the "Looks" catch at the upper left. 30 min Scratch July 2009

Slide 7

Major segments At right: the phase with sprite[s] or articles or performing artists At left: operations and traits for the sprites Center: scripts or program[s] for the behavior[s] of the sprites Your sprites are on-screen characters that you coordinate with your scripts 30 min Scratch July 2009

Slide 8

Let's actualize a calculation to normal two numbers Make a variable "number1" (snap and drag and set) Make another "number2" 30 min Scratch July 2009

Slide 9

Compute normal first as aggregate Make variable normal Drag a "set operation" to script zone Drag a + operation Drag factors number1 and number2 to parameters Click to execute 30 min Scratch July 2009

Slide 10

Average script as 4 operation succession. Change the two numbers and tap the succession to execute the square once more. 30 min Scratch July 2009

Slide 11

But Scratch processes with mixed media – shading, sound, … Can make kid's shows Can make stories Can make computer games 30 min Scratch July 2009

Slide 12

The "welcome" script Can do it in 57 dialects – java, C++, … Scratch Easy in Scratch: select "Looks" operations and drag the "welcome operation" onto your inside board. At that point double tap on this "lego square": check your sprite conduct at the privilege Your first Scratch program! 30 min Scratch July 2009

Slide 13

Make the feline half bigger Select "Looks" operations Drag the "change measure" administrator into your script Click and alter for a half change (increment) Double snap your one operation script Did your feline sprite get half greater? 30 min Scratch July 2009

Slide 14

Scripting a grouping of operations Do operations in the accompanying request by dragging operation hinders into a solitary associated piece Say hi Move 200 stages forward Grow half greater Make the "yowl sound" 30 min Scratch July 2009

Slide 15

Some new operations shading change (Looks) hold up (Control) move (Motion) 30 min Scratch July 2009

Slide 16

Starting a circled script 30 min Scratch July 2009

Slide 17

Exercise: compose a script to Make the feline move along a square way Say "howdy" at all four corners Wait 3 seconds at each corner Change shading at all four corners Double size when back to the first beginning area. Say "That is all people" when done. 30 min Scratch July 2009

Slide 18

Elements of Scratch: items Colors Sounds Locations in 2D space Sprites Costumes Variables (to recollect the condition of things) Events: that are communicate for correspondence 30 min Scratch July 2009

Slide 19

Elements of Scratch: control Sequence of operations Loops or redundancy Detecting occasions (key or mouse squeezed, sprites covering each other, sprites hitting edge of stage, sensor giving worth) 30 min Scratch July 2009

Slide 20

Loop develops in Scratch Repeat N times Repeat always Repeat everlastingly if some condition exists (assume I'm a sprite meandering about this lab until somebody poses a question) 30 min Scratch July 2009

Slide 21

Conditions can be checked Do something if sprite k hits sprite m Do something if a specific key is squeezed Do something is some factor takes a specific esteem 30 min Scratch July 2009

Slide 22

Interacting with your sprite or story Using mouse Entering a character Asking the client a question 30 min Scratch July 2009

Slide 23

Sprite takes after the mouse Try changing the quantity of steps or the hold up time. 30 min Scratch July 2009

Slide 24

Play and inspect MadLib Choose the "record" alternative at the highest point of the window Choose "open", then "illustrations" Choose "stories" Choose "MadLib" and afterward read the writers guidelines Click OK, sit tight for load, click green banner 30 min Scratch July 2009

Slide 25

About the MadLib story what number performing artists (sprites)? What is the part of the young lady? How are the appropriate responses you give "recollected" and afterward utilized as a part of later activities? What is the part of the little whale? What makes the little whale flip around? What makes the enormous whale gush? 30 min Scratch July 2009

Slide 26

Sprites can collaborate with each other Can distinguish when hues cover in space Can identify when sprites chance upon edge of the stage See "skipping balls" case under Simulations under Examples Interact with this reproduction Check out the somewhat complex scripts 30 min Scratch July 2009

Slide 27

Check out the tear move Open illustrations; music and move; break move How does break moving start? What are the parts of the sprites? What occasions are in the scripts? What ought to happen when the blast box is clicked? 30 min Scratch July 2009

Slide 28

Experiment with Scratch as time grants Try your own particular scripts: make moves, sounds, communications in basic cases Try the illustrations and realize what makes them work Download Scratch all alone machine and trial some more straightforward a story; or a reproduction; or make a computer game. 30 min Scratch July 2009

SPONSORS