Learn… Create… Program

Slides:



Advertisements
Similar presentations
Create a Simple Game in Scratch
Advertisements

Summer Computing Workshop. Introduction to Variables Variables are used in every aspect of programming. They are used to store data the programmer needs.
Create a Simple Game in Scratch
30 min Scratch July min intro to Scratch A Quick-and-Dirty approach Leaving lots of exploration for the future. (5 hour lesson plan available)
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,
1 An intro to programming concepts with Scratch Session 3 of 10 sessions Repetition and variations.
Learn… Create… Program. Manipulation of Multiple Media Connects with youth culture Scratch is a new graphical programming language designed to support.
1 An introduction to programming concepts with Scratch.
An intro to programming concepts with Scratch Session 2 of 10 sessions I/O, variables, simple computing.
An intro to Scratch Notes and Tasks for ITEC-I5 Camp
1 An introduction to programming concepts with Scratch (in 5 hours + homework)
1 An intro to programming concepts with Scratch Session 1 of 10 sessions Looks and Motion.
ITEC Winter An intro to programming concepts with Scratch Quick intro for college citizens. George Stockman MSU CSE.
Introduction to Scratch! Michelle Venable-Foster Barb Ericson August 2014.
Digital Art in Scratch part 1 Barb Ericson Georgia Tech Oct 2010.
Scratch Workshop Thursday, August 26, 2010.
Adventures in Animation Introduction to Scratch! Michelle Venable-Foster June 2006.
What is Scratch? Scratch as Logo Dr. Ben Schafer Department of Computer Science University of Northern Iowa.
Scratch the Cat. Object Oriented Programing Writing computer programs Based on Objects Instead of Actions Based on Data Instead of Logic.
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!
Adventures in Animation Introduction to Scratch! Michelle Venable-Foster Barb Ericson May 2009.
Objects and Methods in Scratch 1. 2 Scratch environment Stage is at upper right (where actors act and information is displayed) Sprite is another name.
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
Digital Art in Scratch part 1 Barb Ericson Georgia Tech May 2011.
Creating a Simple Game in Scratch Barb Ericson Georgia Tech June 2008.
Learning Enabling Objective To become familiar with the technological world of robotics.
Scratch Another computer programming language Developed by MIT in 2003
Create a Halloween Computer Game in Scratch Stephanie Smullen and Dawn Ellis Barb Ericson October 2008.
Computer Programming Modeling a Passive Solar Home.
Using MIT Scratch for Programming and Control Exercise 1 Creating movement Year 11 DTG 2012.
 SCRATCH is a new programming language that lets you create your own interactive stories, animations, games, music, and art.
How to create a basic game in Scratch. The Scratch Stage The Scratch stage is 480 pixels wide and 360 pixels high x increasesx decreases.
Adventures in Animation Introduction to Scratch! Michelle Venable-Foster Barb Ericson Dec 2007.
1 CSC 221: Computer Programming I Fall 2009 Introduction to programming in Scratch  animation sprites  motion, control & sensing  costume changes 
ICT/COMPUTING RULES Only use software allowed by the teacher
Creating a Simple Game in Scratch Barb Ericson Georgia Tech May 2009.
Introducing Scratch Learning resources for the implementation of the scenario
School of Computer Science Space School 2015 Programming a Lunar Lander Game.
Introduction to Scratch
Create a Halloween Computer Game in Scratch
Programming & Scratch.
Scratch for Interactivity
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.
Unit 2 Getting Started With
Introduction to Scratch!
Computing Year 7 - Unit 2 Programming Basics Scratch Basics.
Scratch for Interactivity
Introduction to Object-Oriented Programming
Introduction to.
Learn… Create… Program
Introduction to Scratch!
Go to =>
Welcome to SCRATCH.
Scratch for Storytelling
An intro to programming concepts with Scratch
Image #1 Getting Started
Learn… Create… Program
Learn… Create… Program
Creating a Simple Game in Scratch
CSC 221: Introduction to Programming Fall 2018
Presentation transcript:

Learn… Create… Program

What is Scratch? Scratch is a free programmable toolkit that enables kids to create their own games, animated stories, and interactive art share their creations with one another over the Internet. © Educational Technology Department, Group Head Office, The City School.

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). © Educational Technology Department, Group Head Office, The City School.

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. © Educational Technology Department, Group Head Office, The City School.

What is Scratch? Increase student skills with computers Increase student interest in programming Student achievement on fun project Learn Cartesian coordinates, distance computations, etc. © Educational Technology Department, Group Head Office, The City School.

Computer scientists 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 © Educational Technology Department, Group Head Office, The City School.

Start scratch and let’s go! Click on the cat icon Or, find “scratch” under “Programs” When home, download from www.scratch.mit.edu Scratch programming environment comes up quickly © Educational Technology Department, Group Head Office, The City School.

Click on the “Looks” button at the top left. © Educational Technology Department, Group Head Office, The City School.

Major components At right: the stage with sprite[s] or objects or actors At left: operations and attributes for the sprites Center: scripts or program[s] for the behavior[s] of the sprites Your sprites are actors that you direct with your scripts © Educational Technology Department, Group Head Office, The City School.

Let’s implement an algorithm to average two numbers Make a variable “number1” (click and drag and set) Make another one “number2” © Educational Technology Department, Group Head Office, The City School.

Compute average first as sum Make variable average Drag a “set operation” to script area Drag a + operation Drag variables number1 and number2 to parameters Click to execute © Educational Technology Department, Group Head Office, The City School.

Average script as 4 operation sequence. Change the two numbers and click the sequence to execute the block again. © Educational Technology Department, Group Head Office, The City School.

But Scratch computes with multimedia – color, sound, … Can make cartoons Can create stories Can create video games © Educational Technology Department, Group Head Office, The City School.

The “hello” script Can do it in 57 languages – java, C++, … Scratch Easy in Scratch: select “Looks” operations and drag the “hello operation” onto your center panel. Then double click on this “lego block”: check your sprite behavior at the right Your very first Scratch program! © Educational Technology Department, Group Head Office, The City School.

Make the cat 50% larger Select “Looks” operations Drag the “change size” operator into your script Click and edit for a 50% change (increase) Double click your one operation script Did your cat sprite get 50% bigger? © Educational Technology Department, Group Head Office, The City School.

Scripting a sequence of ops Do ops in the following order by dragging operation blocks into a single connected block Say hello Move 200 steps forward Grow 50% bigger Make the “meow sound” © Educational Technology Department, Group Head Office, The City School.

Some new operations wait (Control) move (Motion) color change (Looks) © Educational Technology Department, Group Head Office, The City School.

Starting a looped script © Educational Technology Department, Group Head Office, The City School.

Exercise: write a script to Make the cat move along a square path Say “hi” at all four corners Wait 3 seconds at each corner Change color at all four corners Double size when back to the original starting location. Say “That’s all folks” when done. © Educational Technology Department, Group Head Office, The City School.

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 © Educational Technology Department, Group Head Office, The City School.

Elements of Scratch: control Sequence of operations Loops or repetition Detecting events (key or mouse pressed, sprites overlapping each other, sprites hitting edge of stage, sensor giving value) © Educational Technology Department, Group Head Office, The City School.

Loop constructs in Scratch Repeat N times Repeat forever Repeat forever if some condition exists (suppose I’m a sprite wandering about this lab until someone asks a question) © Educational Technology Department, Group Head Office, The City School.

Conditions can be checked Do something if sprite k hits sprite m Do something if a certain key is pressed Do something is some variable takes a certain value © Educational Technology Department, Group Head Office, The City School.

Interacting with your sprite or story Using mouse Entering a character Asking the user a question © Educational Technology Department, Group Head Office, The City School.

Sprite follows the mouse Try changing the number of steps or the wait time. © Educational Technology Department, Group Head Office, The City School.

Play and examine MadLib Choose the “file” option at the top of the window Choose “open”, then “examples” Choose “stories” Choose “MadLib” and then read the authors instructions Click OK, wait for load, click green flag © Educational Technology Department, Group Head Office, The City School.

About the MadLib story How many actors (sprites)? What is the role of the girl? How are the answers you give 'remembered' and then used in later actions? What is the role of the little whale? What makes the little whale flip around? What makes the big whale spout? © Educational Technology Department, Group Head Office, The City School.

Sprites can interact with each other Can detect when colors overlap in space Can detect when sprites bump into edge of the stage See “bouncing balls” example under Simulations under Examples Interact with this simulation Check out the rather complex scripts © Educational Technology Department, Group Head Office, The City School.

Check out the break dance Open examples; music and dance; break dance How does break dancing begin? What are the roles of the sprites? What events are in the scripts? What should happen when the boom box is clicked? © Educational Technology Department, Group Head Office, The City School.

Experiment with Scratch as time permits Try your own scripts: make moves, sounds, interactions in simple cases Try the examples and learn what makes them work Download Scratch on your own machine and experiment some more Direct a story; or a simulation; or create a video game. © Educational Technology Department, Group Head Office, The City School.