Mod 2 Lesson 2 Repeating Debugging

Slides:



Advertisements
Similar presentations
Create a Simple Game in Scratch
Advertisements

Create a Simple Game in Scratch
Racing Car Game Using the keys to control a sprite.
Introduction to TouchDevelop
Digital Art in Scratch part 1 Barb Ericson Georgia Tech Oct 2010.
Mr. Wortzman. Tabs (Block Categories) Available Blocks Script Area Sprite Stage All sprites in this project.
Introducing Scratch the Cat
Scratch Programming Lesson 2 First glance to programming logic.
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.
Introduction to TouchDevelop
2015 CSE/EGR Summer Camps 1 Computer Science Concepts 1. What is an algorithm? 2. Binary information coding 3. Programming concepts via Scratch Designed.
Section 1 Introduction National 4/5 Scratch Course.
Shapes Edited by M. Haynie. Circle Triangle Square.
Digital Art in Scratch part 1 Barb Ericson Georgia Tech May 2011.
Algorithms Writing instructions in the order they should execute.
Computer Programming Modeling a Passive Solar Home.
Drawing with the Pen Barb Ericson Georgia Tech June 2011.
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.
First Project: Dance Dance Sprite  Write a dance with your sprite (You pick or create the sprite)  Incorporate as many of the Motion Commands as you.
Squeaky Tales. Starfish Challenge! Troubleshooting 1.Computer Freezing 2.Patience 3.Size of numbers in script.
Digital Art in Scratch part 2 Barb Ericson Georgia Tech Nov 2010.
Turtle Graphics Lesson 2 1. There are 3 homeworks to complete during the six lessons of this unit. Your teacher will let you know when a homework has.
What does this do? Pen up? Pen Down? Clear? Set Pen Color? Set Pen Shade? Stamp? 1.
Creating a Simple Game in Scratch Barb Ericson Georgia Tech May 2009.
Drawing in Scratch We will be using the Scratch Environment today, so please log in to the Scratch website (scratch.mit.edu)
Using MIT Scratch for Programming and Control Programming 9.
Using the Python Turtle
Functions / Blocks.
Create a Halloween Computer Game in Scratch
Computer Programming.
Scratch for Interactivity
Intro CS – Loops & Creating Shapes
Keep coding Bekir Mugayitoglu.
Here you can learn all about 2-D shapes
Understanding the Geometric Shape Code
Scratch – Simple Programming
Evgeniya Gushchina EPAM e-kids volunteer computer science teacher
Scratch for Interactivity
2-Dimensional Shapes Name: ______________________________
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Playing with Pictures Module 1 Lesson 3.
Module 2 Lesson 3 Over and Over Again
Unit 3: Lesson 9-Looping and Random Numbers
Here you can learn all about 2-D shapes
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Hour of Code.
Go to =>
Go to =>
Mod 2 Lesson 2 Repeating with loops
Game Over Module 4 Lesson 2.
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Getting Started with Scratch
By 2-D shapes.
Module 2 Lesson 3 Over and Over Again
Intro to Programming 2/23/2016 Review Sections 1-3
Mod 5 Lesson 1 Scratch Cards: Easy
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Mod 2 Lesson 2 Repeating with loops
Module 2 Lesson 3 Over and Over Again
Playing with Pictures Module 1 Lesson 3.
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Creating a Simple Game in Scratch
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Lesson Six Drawing.
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
2 Making Blocks.
Using MIT Scratch for Programming and Control Exercise 5 – Drawing with Scratch Year 9 ICT Autumn Term 2007.
Presentation transcript:

Mod 2 Lesson 2 Repeating Debugging Intro to Programming Mod 2 Lesson 2 Repeating Debugging

Intro Learning Objectives Use the pen commands to introduce the concept of iteration and loops in Scratch. Introduce students to the Scratch’s debugger. Students will be able to write programs that incorporate looping. Students experiment with drawing shapes in Scratch.

How can you do this with less code? (240, 180) (-240, 180) What does this code do? Note: Starting location is in the middle, starting direction is to the right, starting pen color is black. How can you do this with less code? (-240, -180) (240, -180)

What do you think this program does? Create the script in Scratch to check, Hide Makes the sprite disappear. Show Makes it reappear. Pen up Lifts the pen off the canvas, so when moved nothing is written. Pick random () In the operators set of commands. Picks a random number from 1 to 10. Clear Clears the pen marks and stamps from the stage. (Note: Background will still remain.) Set pen color to Sets the pen color. Over 200 options. Tells you what position on the stage the drawing will start. Pen down Start leaving a pen trail when moved. This repeat loop draws the square.

Turn on the Single Stepping to see how it works. Debugging Tool Edit -> Start Single Stepping Turn on the Single Stepping to see how it works.

Steps Through the Program Highlights the current step.

Your Turn Using to loop, try to create the following. Triangle Pentagon Circle Show to Smith when you have them completed. Try to draw a circle and hexagon side by side.

Assignment Create a piece of art in Scratch using the pen. It must have at least 6 figures and at least 3 loops. Push: Create the snowman. Push: Have the figure (not a sprite) move. Save it as YourNameMod2Lesson2