Presentation is loading. Please wait.

Presentation is loading. Please wait.

Introduction to Scratch

Similar presentations


Presentation on theme: "Introduction to Scratch"— Presentation transcript:

1 Introduction to Scratch
Intro to visual programming environment Intro to programming with multimedia Story-telling, music-making, game-making Intro to programming concepts: objects, attributes, sequence, repetition, conditions, events, I/O

2 What is Scratch Scratch is a free programmable toolkit that enables users to create their own games, animated stories, and interactive art and share their creations with one another over the Internet. Use of scratch allows you to: Create solutions to problems using computers Study information Invent algorithms Write programs to implement the algorithms Reuse a lot of existing program and machine parts

3 Start Scratch Open web browser Navigate to:

4 Scratch start window Stage area Scripts area Blocks palette
This is where the result of your program execution will be seen Your construct your script here by putting together command blocks from the “Blocks palette”. Sprite list List of existing or created objects which are used in your script.

5 What Scratch can do Elements of Scratch: objects Can make cartoons
Can create stories Can create video games Elements of Scratch: objects Colors Sounds Locations in 2D space Sprites Costumes Variables (to remember the state of things) Events: that are broadcast for communication

6 Your first script Make sure to have a sprite selected in the “Sprite list” Drag shown blocks into “Script area”. Click the sprite in the “Stage area”

7 Add new stage

8 Stage dimensions These are x- and y- coordinates for the stage: y x

9 Add new sprite

10 Loop constructs in Scratch
Repeat N times Repeat forever Repeat forever if some condition exists

11 Compose program in Scratch

12 Compose scripts in Scratch
Examples of loops and “IF” operators:

13 Scratch assignment No. 1 Using Scratch (scratch.mit.edu) design algorithm and script which would perform the following: Draw a car. Draw a smiley face. Draw a house. Draw a sailboat. Draw initials of the team leader. Draw a robot face Draw a 6-leaf flower Draw 5 squares with crosses Save your script on your local computer. Prepare brief printed MS-Word report with problem statement, solution description, working script, and Scratch screen shots. Upload the script and the report to your group file exchange section on the BlackBoard. Each team should be able to present (show on the screen) and explain working scripts to the audience in class. The printed report shall be turned in.

14 Scratch assignment No. 2 Using Scratch (scratch.mit.edu) design algorithm and script which would display: working digital clock working analog clock stop watch Create your own sprites and your own background if needed. Save your script on your local computer. Prepare brief printed MS-Word report with problem statement, solution description, working script, and Scratch screen shots. Upload the script and the report to your group file exchange section on the BlackBoard. Each team should be able to present (show on the screen) and explain working scripts to the audience in class. The printed report shall be turned in.

15 Scratch assignment No. 3 Using Scratch (scratch.mit.edu) design algorithm and script which would draw a graph of function: f(x) = A sin(ax + b) where A, a, and b are parameters which can be entered from keyboard. Create your own sprites and your own background if needed. Save your script on your local computer. Prepare brief printed MS-Word report with problem statement, solution description, working script, and Scratch screen shots. Upload the script and the report to your group file exchange section on the BlackBoard. Each team should be able to present (show on the screen) and explain working scripts to the audience in class. The printed report shall be turned in.

16 Scratch assignment No. 5 Using Scratch (scratch.mit.edu) design algorithm and script which would perform the following functions: Rotate the vehicle with an arm until it finds (touches) the object “Grab” the object Rotate the vehicle with the object 180 degrees Release the object Move the vehicle off the object Create your own sprite and your own background. object vehicle Save your script on your local computer. Prepare brief printed MS-Word report with problem statement, solution description, working script, and Scratch screen shots. Upload the script and the report to your group file exchange section on the BlackBoard. Each team should be able to present (show on the screen) and explain working scripts to the audience in class. The printed report shall be turned in.

17 Scratch assignment No. 6 Using Scratch (scratch.mit.edu) design an algorithm and a script which would move chosen sprite (a ball) in random direction inside a rectangular box and bouncing off its walls. You may create your own sprites and your own background. Save your script on your local computer. Prepare brief printed MS-Word report with problem statement, solution description, working script, and Scratch screen shots. Upload the script and the report to your group file exchange section on the BlackBoard. Each team should be able to present (show on the screen) and explain working scripts to the audience in class. The printed report shall be turned in.

18 Scratch assignment No. 7 Using Scratch (scratch.mit.edu) design an algorithm and a script which would animate your team name. Maximum length 30 seconds. Your scene needs to have theme music and a stage that reflects your personality, interests, and essence. Include suitable animation for the letters. You may create your own sprites and your own background. Save your script on your local computer. Prepare brief printed MS-Word report with problem statement, solution description, working script, and Scratch screen shots. Upload the script and the report to your group file exchange section on the BlackBoard. Each team should be able to present (show on the screen) and explain working scripts to the audience in class. The printed report shall be turned in.


Download ppt "Introduction to Scratch"

Similar presentations


Ads by Google