What is Scratch? Scratch as Logo Dr. Ben Schafer Department of Computer Science University of Northern Iowa.

Slides:



Advertisements
Similar presentations
Create a Simple Game in Scratch
Advertisements

Create a Simple Game in Scratch
Mission Technology Introduction to Scratch! June 2007.
Scratch for Storytelling Dr. Ben Schafer Department of Computer Science University of Northern Iowa.
Partners Computer #Partner APartner B 1 Bachmeier, EmilyMuniz, Olivia 2 Betz, MiahRatz, Jordan 3 Brundage, AmandaRipperton, Jacklynn 4 Cretsinger, SierraRundall,
Code Club Session 3 Shark Eats Fish. Picture of finished product here.
Mrs. Chapman. Tabs (Block Categories) Commands Available to use Script Area where you type your code Sprite Stage All sprites in this project.
Learn… Create… Program. Manipulation of Multiple Media Connects with youth culture Scratch is a new graphical programming language designed to support.
1 Exploring Stagecast Creator Stagecast Creator Tutorial: Kids Smoking on the Playground By: Community Simulations Team Center for Human-Computer Interaction.
Introduction to Scratch UC Santa Cruz CMPS 10 – Introduction to Computer Science 13 May 2011.
Introduction to Scratch! Michelle Venable-Foster Barb Ericson August 2014.
Digital Art in Scratch part 1 Barb Ericson Georgia Tech Oct 2010.
Adventures in Animation Introduction to Scratch! Michelle Venable-Foster June 2006.
Mr. Wortzman. Tabs (Block Categories) Available Blocks Script Area Sprite Stage All sprites in this project.
Fish Chomp. The screen where you can see what happens when you play your game is called the STAGE. The SCRIPT BANK is where the types of instructions.
Scratch the Cat. Object Oriented Programing Writing computer programs Based on Objects Instead of Actions Based on Data Instead of Logic.
By Yukyong Chung.  Given the terms of computational concepts, the students will be able to state examples matching the Scratch blocks.  The students.
Code Club Session 2 Dance Party. What will we learn ?  How to change the background  How to create animations  How to make objects talk to each other.
Introduction to Scratch!
Exploring Computer Science 2/23/15 2/23 Develop a Scratch story project -Brainstorming 2/24 Develop a Scratch story project –Developing 2/25 Develop a.
Introducing Scratch the Cat
Adventures in Animation Introduction to Scratch! Michelle Venable-Foster Barb Ericson May 2009.
Art 321 Lecture 7 Dr. J. Parker. Programming In order to ‘make things happen’ on a computer, you really have to program it. Programming is not hard and.
Partners Comp# Partner APartner B 1 Ancona, SamanthaManternach, Hailey 2 Black, RyanMcNeil, Maddie 3 Conger, KevinOhland, Rebecca 4 Day, MerciOtterbein,
Introduction to Scratch Scratch as Logo Dr. Ben Schafer Department of Computer Science University of Northern Iowa.
2015 CSE/EGR Summer Camps 1 Computer Science Concepts 1. What is an algorithm? 2. Binary information coding 3. Programming concepts via Scratch Designed.
Introduction to Programming G50PRO University of Nottingham Unit 2 : Introduction To Scratch Paul Tennent
Game Maker – Getting Started What is Game Maker?.
Digital Art in Scratch part 1 Barb Ericson Georgia Tech May 2011.
Creating a Simple Game in Scratch Barb Ericson Georgia Tech June 2008.
Introduction to Scratch. What is Scratch? Scratch is a control program that enables you to create your own interactive stories, animations, games, music,
Learning Enabling Objective To become familiar with the technological world of robotics.
Create a Halloween Computer Game in Scratch Stephanie Smullen and Dawn Ellis Barb Ericson October 2008.
Computer Programming Modeling a Passive Solar Home.
1 Project designed and created by M. Shajith Kumar.
Scratch Creative Computing. INTRODUCTION TO SCRATCH Section 1.
Using MIT Scratch for Programming and Control Exercise 1 Creating movement Year 11 DTG 2012.
From last time… Explore the blue commands from the motion menu Find at least three ways to get the sprite to move to the UPPER LEFT corner.
How to create a sprite Delete a sprite (e.g. the cat) by right clicking on it and choosing delete. Go to the bottom right hand corner and choose a new.
How to create a sprite Delete a sprite (e.g. the cat) by right clicking on it and choosing delete. Go to the bottom right hand corner of the stage and.
 SCRATCH is a new programming language that lets you create your own interactive stories, animations, games, music, and art.
Scratch for Interactivity Dr. Ben Schafer Department of Computer Science University of Northern Iowa.
Adventures in Animation Introduction to Scratch! Michelle Venable-Foster Barb Ericson Dec 2007.
Computer Programming Modeling a Passive Solar Home.
Computer Programming with Scratch JAOIT 8. Scratch Scratch is a programming language that makes it easy to create your own interactive stories, animations,
Teaching Kids Programming with Chromebook Digital Convergence Lab, NIU.
Creating a Simple Game in Scratch Barb Ericson Georgia Tech May 2009.
Introducing Scratch Learning resources for the implementation of the scenario
Introduction to Scratch
Create a Halloween Computer Game in Scratch
Scratch for Interactivity
Partners Abbas, Jackson Johnson, Courtney Adams, Matthew Johnson, Emma
What is it?! •Scratch is a programming language that allows you to create interactive stories, music, animations, art, games, and more!
Scratch Unit Overview We are going to look at computer programming and how to create your very own computer game The piece of software we will be using.
Introduction to Scratch!
Scratch for Interactivity
Introduction to Object-Oriented Programming
Introduction to.
Learn… Create… Program
Introduction to Scratch!
Go to =>
Learn… Create… Program
Go to =>
Scratch for Storytelling
Introduction to Snap Programming
Learn… Create… Program
Learn… Create… Program
Creating a Simple Game in Scratch
Presentation transcript:

What is Scratch? Scratch as Logo Dr. Ben Schafer Department of Computer Science University of Northern Iowa

What is Scratch?

Scratch is being developed by the Lifelong Kindergarten research group at the MIT Media Lab, in collaboration with KIDS research group at the UCLA Graduate School of Education & Information Studies. Lifelong KindergartenMIT Media LabKIDS research group

What is Scratch? Scratch is a free programmable toolkit that enables kids (target ages 8-18) to create their own games, animated stories, and interactive art and share their creations with one another over the Internet.

What is Scratch? Scratch builds on the long tradition of Logo and LEGO/Logo, but takes advantage of new computational ideas and capabilities to make it easier for kids to get started with programming (lowering the floor) and to extend the range of what kids can create and learn (raising the ceiling).

What is Scratch? Scratch is an easy introductory programming language because users program primarily by connecting program blocks.

What is Scratch? Because there is virtually no typing involved it is impossible to get syntax errors.

What is Scratch? The ultimate goal is to help kids become fluent with digital media, empowering them to express themselves creatively and make connections to powerful ideas.

What is Scratch? Let’s look at some examples right away.

Let’s Get Started! Open up your laptops and power them on.

Let’s Get Started! To Open Scratch, double-click on the Scratch (cat) icon

Getting Started With Scratch Once you’ve opened Scratch, you should see this default screen:

Getting Started With Scratch Stage Sprite List (“the green room”) The Script Area Code Block Area

Meeting Your Sprite! You will notice that the default sprite is an orange cat. (A sprite is a small graphic that can be moved independently around the screen, producing animated effects.) You can choose a different sprite to program from a library in Scratch, or you can draw your own! You will create your own sprite later.

Programming In Scratch! The first thing you need to do is to click on the sprite you want to program, and select the “Scripts” tab. Since your cat sprite is the only thing that can be animated, make sure you have it selected. The Scripts area is where you “build” your program by using the programming blocks.

Programming In Scratch! In the upper, left-hand corner of your Scratch window, you will see 8 buttons. Each of these buttons switches to a menu of programming blocks in that particular area. We will first experiment with the Motion blocks.

Motion When you click on the motion button, you will see the programming blocks that can be used with your sprite. Let’s all program our sprites with the same code first, and then you’ll be allowed to experiment on your own!

Motion Drag out the “move 10 steps” block. “Circular-edged” boxes contain “numbers” but the values are changeable. Change the “10” to “50” by clicking in the block and typing in 50.

Motion To see your sprite move 50 pixels to the right, double click on the block in the Script area. Cool, isn’t it?!

What Is A Pixel? We’ve been talking about pixels – what is a pixel? A pixel is one of the small units that make up an image on a computer or television screen. It is derived from the words picture and element to make pixel!

Motion You can also set the motion block to move a negative number of pixels by typing a negative number in the block. This will move your sprite that number of pixels in the opposite direction.

Motion Drag out a second “move 10 steps” block. Change the “10” to “-50” by clicking in the block and typing in -50. To see your sprite move 50 pixels to the LEFT, double click on the block in the Script area.

More Motion Now, add the “turn 15 degrees” block to the other block of code. When you see the white bar between the 2 blocks of code, you can release your mouse. That white bar means that the 2 blocks will “snap” onto the other block.

More Motion Again, you can change the number of degrees by clicking in that area and typing in the number of degrees you’d like your sprite to rotate. Double click on the blocks to see your sprite move and rotate in a single sequence of actions!

Experiment With Motion We’ve only used 2 of the blocks in the Motion category. For the next few minutes, I want you to experiment with all of the other blocks in the Motion category. If you’d like to see what a block does, right click on the block and then click on help. You can delete code easily by just dragging it from the Script area!

Your Turn #1 Explore the blue commands from the motion menu Find at least three ways to get the sprite to move to the UPPER LEFT corner

Your Turn #1 - Results What did you discover?

The Scratch Stage The Scratch stage is 480 pixels wide and 360 pixels high

The Scratch Stage Sprites can face different “directions” based on a degree turn from 0 (north)

Control The next category of programming buttons we will experiment with is the Control category. This is a very important category because it controls how many times an event happens, how long an event happens, or when an event happens.

Control The first block I’d like us to use is the “when flag clicked” block: Drag this block out, and snap it on top of the blocks you already have in your script.

Control Now, instead of having to double click on your block of code, you can just click on the flag icon to play your animation! Click here to start

Using The Pen When using the Pen tools, your sprite actually becomes your writing instrument! You can change the Pen’s color, its shade, and its size.

Pen Challenge #1 Create a sequence of actions so that the sprite draws –A square If you get done and want to look at more: –An octagon –An equilateral triangle

One Typical Solution

Additional Control I have to admit it – one of the reasons I went into computer science is that I am lazy. What is a square? –Four edges and four angles (turns) Rather than say “move-turn-move-turn…” I would rather say “move-turn” x 4

Additional Control Scratch has several ways to let me tell the sprite to repeat something (to iterate).

Additional Control Notice that –each has a notch at the top meaning it can be connected to blocks coming before it –Each has a tab on the inside of the “mouth” meaning a block/sequence can be placed inside of the loop –The repeat has a tab below it indicating that additional blocks can be placed after the repeat. (The forever does not. Why?)

An Alternate Solution

If you haven’t saved this yet… First of all, shame on you. Always save your work as you go. Do make sure you save this program (preferably with a meaningful name like “SquareTracer”)

Pen Challenge #2 Your next Pen Challenge is to use the tools to create an interesting design. Remember that you can change Pen color and shade! Suggestion - consider what happens if you place a loop inside of another loop

Pen Challenge #3 Write your initials using the Pen tools. It may sound easy, but, you have to remember to lift your pen when necessary and also to put it back down!

Concept Summary The layout of the Scratch stage Basic sequencing of commands The Motion and Pen menus The repeat command from the Control menu