1 An intro to programming concepts with Scratch Session 1 of 10 sessions Looks and Motion.

Slides:



Advertisements
Similar presentations
Create a Simple Game in Scratch
Advertisements

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)
Michael Parkes Dudley LA What can Scratch do? Make simple games, animations, presentations and stories.
Scratch for Storytelling Dr. Ben Schafer Department of Computer Science University of Northern Iowa.
1 An intro to programming concepts with Scratch Session 3 of 10 sessions Repetition and variations.
Write Your First Computer Game!. Coding: Programming Languages Just like you can speak Chinese to someone who understands Chinese to tell them what to.
Scratch Programming Session 6 of 10 If-then-else statements interactions Final projects specifications.
Learn… Create… Program. Manipulation of Multiple Media Connects with youth culture Scratch is a new graphical programming language designed to support.
Session 5 of 10 Review + Multiple Sprites
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)
ITEC Winter An intro to programming concepts with Scratch Quick intro for college citizens. George Stockman MSU CSE.
Scratch Workshop Thursday, August 26, 2010.
What is Scratch? Scratch as Logo Dr. Ben Schafer Department of Computer Science University of Northern Iowa.
StarLogoTNG Treasure Hunt Game Unit Lesson 1: Basic Movement.
2012 CSE-BEACON camp1 Computer Science Concepts 1. What is an algorithm? 2. Binary information coding 3. Programming concepts via Scratch Designed for.
Scratch the Cat. Object Oriented Programing Writing computer programs Based on Objects Instead of Actions Based on Data Instead of Logic.
Introduction to.
Click your mouse for next slide Flash – Introduction and Startup Many times on websites you will see animations of various sorts Many of these are created.
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!
Using MIT Scratch for Programming and Control Exercise 3 Ball Game Year 9 ICT Autumn Term 2007.
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
Exploring Computer Science 2/16/15
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.
2012 CSE-BEACON camp1 Computer Science Concepts 1. What is an algorithm? 2. Binary information coding 3. Programming concepts via Scratch Designed for.
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.
Moving Sprites in Scratch Exploring Computer Science – Lesson 4-4.
Creating a Simple Game in Scratch Barb Ericson Georgia Tech June 2008.
Computer Programming Modeling a Passive Solar Home.
24 Background Building 25 Computing Terminology, and Speed/Velocity Module 4 Notes: Sensing, Or Operator, Conditional Logic 28 Module 4 Algorithms,
Unit 1 Introduction to Evangel College S.2 ICT.
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.
Introduction to Computer Programming - Project 2 Intro to Digital Technology.
Introduction to Computer Programming - Project 1 Intro to Digital Technology.
Scratch for Interactivity Dr. Ben Schafer Department of Computer Science University of Northern Iowa.
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.
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
Teaching Kids Programming with Chromebook Digital Convergence Lab, NIU.
Intro CS – Loops, making animations & films Lesson Plan 3.
Creating a Simple Game in Scratch Barb Ericson Georgia Tech May 2009.
Introducing Scratch Learning resources for the implementation of the scenario
© it’sLearning 365 Limited | Screen 1 FLASH enabled How to use me : Teachers Notes Useful Web Link Ne xt Pa ge Ne xt Pa ge Navigate.
Using MIT Scratch for Programming and Control Programming 9.
Introduction to Scratch
Scratch for Interactivity
Intro CS – Loops, making animations & films
Introduction to Object-Oriented Programming
Introduction to.
Learn… Create… Program
Motion and Looks.
Learn… Create… Program
Scratch for Storytelling
An intro to programming concepts with Scratch
Getting Started with Scratch
Learn… Create… Program
Learn… Create… Program
Creating a Simple Game in Scratch
CSC 221: Introduction to Programming Fall 2018
Using MIT Scratch for Programming and Control Exercise 5 – Drawing with Scratch Year 9 ICT Autumn Term 2007.
Presentation transcript:

1 An intro to programming concepts with Scratch Session 1 of 10 sessions Looks and Motion

2 What are our course goals? Learn some computing concepts. Learn some practical algorithms. Use Scratch as computing tool. Have fun with Scratch creating stories, games, art.

3 Who computes? Scientists Engineers Businessmen Social scientists Artists FBI agents Brain surgeons Grandkids Everyone uses information in some way. Computers do information processing.

4 Session I goals Intro to computer science and programming Scratch programming environment Using the looks and motion menus Writing a sequence of instructions Positions in 2D; angles and directions

5 What is needed Students need to have computers with Scratch installed: 1 or 2 students per computer Workbook for each student [optional] Angle display board [optional] display of Scratch interface with names of parts [optional] thumb drive with examples

6 “programming a robot” Student gives instructions to robot (instructor) to navigate around the room

7 Session I B: Scratch intro Brief introduction to Scratch 5 minute video [if available] How we “program” in Scratch The parts of the environment

8 Start scratch and let’s go! Click on the cat icon If not on desktop, download from Scratch programming environment comes up quickly We will first do simple ops

9 Scratch environment Stage is at upper right (where actors act and information is displayed) Sprite is another name for actor. Instruction menus/panel at left (instructions for the actors) A script is another name for program or method; a script tells the actor what to do. Programming area in center; here is where we construct scripts for the sprites (Sprites are objects; their scripts are methods.)

10 We start with the cat sprite We will learn to use other sprites and many sprites LATER. Now we use the cat as our only actor.

11 The LOOKS menu Has operations for setting the color, size, and visibility of a sprite. Costumes will be used LATER

12 The “hello” script (program) Choose the Looks menu Click on the “say hello” lego block Check your sprite behavior at the right Then click “say hello for 2 secs” Your very first Scratch program!

13 Try some other looks operations (click menu items) Change color effect by 25 Change color effect by 25 again Hide Show Change size by 10 Change size by 10 again Set size to 100%

14 Let’s write a script to Say “hello” for 2 seconds Then change color by 25 Then think “Hmm..” for 4 seconds Then change color by 75 Then change size by 200 Drag each instruction from the menu to the center script area. Connect them into a single block. Edit the parameters to get the numbers we want.

15 Our script (program)

16 A sequence or block is a simple script or program The first instruction is done first The second instruction is done second The last instruction is done last. (if any one instruction is done, then every on of them is done)

17 The WAIT instruction is needed to slow down the acting so we can see or hear it properly (computers are too fast sometimes) Get the wait instruction from the CONTROL menu. Ignore the other menu options at this time. Insert a wait in our looks script

18 3 second pause between changing color and size

19 Student exercise: write a script to do the following Double the size of the sprite Wait 2 seconds Change the color of the sprite to green Wait 4 seconds Change the whirl effect to 100 Say “That’s all folks!”

20 The MOTION menu How to locate and orient a sprite; location and angle; moving a sprite

21 Position on the stage Using the Looks menu, shrink our cat to 25%. Click on the Motion menu. Click to check the box for x-position and y-position Drag your cat around and note its x-y position.

22 Exercises: goto instruction In the Motion menu, drag the “goto xy” instruction to the script panel. Edit the coordinates and click to see the sprite’s position A) goto x=200, y=0 B) goto x=-200, y=0 C) goto x=200, y=-100 Where does the cat go?

23 The “glide-to” instruction Drag the “glide-to” instruction into your script panel. Edit the coordinate values and click to see where your sprites goes.

24 Exercise Create a script to glide the sprite along the sides of a triangle. The first vertex of the triangle is (-100, -100). The second vertex is (200, -100). The third vertex is (50, 100). Make sure you complete the triangle. Change the speed of gliding and run again.

25 Angles and directions Making your sprite go this way and that way

26 Angles are important About 30 degrees About 45 degrees 90 degrees (right angle) 180 degrees (straight angle) 360 deg complete circle 215 deg To see animation of angle measure.

27 Using a protractor to measure angles

28 Measure some angles with a protractor [if available] P Q A B C

29 Set direction and move Choose Motion menu Click on turn 15 degrees Repeat Click on move 10 step Repeat

30 The treasure is buried under an oak tree 42 degrees to the right of the line between the statue and post statue 42 deg post

31 Exercise: write a script Start at ( -100, 100 ) Move 200 steps Turn right 90 degrees Move 200 steps Turn right 90 degrees Move 200 steps Turn right 90 degrees Move 200 steps Use waits if needed to make the motion look smooth

32 Individual achievement: student creates/demonstrates Sprite starts at home base at x=-100; y=-50 Sprite says “I hit the ball” for 2 seconds Sprite runs (east) 200 steps to 1 st base Sprite changes color Sprite runs 200 steps to 2 nd base (north: left turn from 1 st base) Sprite doubles size Sprite says “I hit a double” for 5 seconds

33 End of session I Student should be able to control the looks of a sprite and its location on the stage. Students should be able to construct sequences of instructions controlling looks and location on the stage.