Intro CS – Loops, making animations & films Lesson Plan 3.

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)
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.
Programming Concept #2 Iteration. Is just a fancy way of saying that you would like something to repeat more than one time. It is used in any modern programming.
Scratch Programming Session 9 of 10 Review elements to use in stories, games, etc.
Scratch Programming Session 6 of 10 If-then-else statements interactions Final projects specifications.
1 An introduction to programming concepts with Scratch.
1 An intro to programming concepts with Scratch Session 1 of 10 sessions Looks and Motion.
Madlib-Input, Strings, and Lists in Scratch Barb Ericson Georgia Tech June 2011.
Digital Art in Scratch part 1 Barb Ericson Georgia Tech Oct 2010.
What is Scratch? Scratch as Logo Dr. Ben Schafer Department of Computer Science University of Northern Iowa.
INTRODUCTION TO SCRATCH. About Me Resources Scratch Website Learn Scratch Washington-Lee Computer.
Every week: Sign in at the door If you are new: Fill in Registration Form Ask a Mentor how to get started Make sure you are on the Athenry Parents/Kids.
Scratch the Cat. Object Oriented Programing Writing computer programs Based on Objects Instead of Actions Based on Data Instead of Logic.
In.  This presentation will only make sense if you view it in presentation mode (hit F5). If you don’t do that there will be multiple slides that are.
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!
Introducing Scratch the Cat
Moving Around in Scratch The Basics… -You do want to have Scratch open as you will be creating a program. -Follow the instructions and if you have questions.
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.
Digital Art in Scratch part 1 Barb Ericson Georgia Tech May 2011.
WHAT IN THE WORLD IS SCRATCH??? AN INTRODUCTION TO COMPUTER PROGRAMMING By MD Showman.
Making a Sprite Dance Barb Ericson Georgia Tech June 2011.
Create a Halloween Computer Game in Scratch Stephanie Smullen and Dawn Ellis Barb Ericson October 2008.
Intro CS – Screens and Variables Lesson Plan 9. Goals  Using sprites as full screens (Start screen, Game over)  Using layering to control ordering of.
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,
Using MIT Scratch for Programming and Control Exercise 1 Creating movement Year 11 DTG 2012.
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.
Introduction to Computer Programming - Project 2 Intro to Digital Technology.
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.
Introduction to Computer Programming - Project 1 Intro to Digital Technology.
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.
Today's Ninja Challenge: Write Your First Computer Game!
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
Madlib-Input, Strings, and Lists in Scratch Barb Ericson Georgia Tech.
Intro CS – Costumes and Variables Lesson Plan 6. Goals  Understanding Costumes, Ordering, Naming  Switching Costumes with Switch and Next  Using Variables.
Intro CS – Broadcasting Messages Lesson Plan 8. Goals  Using broadcasting to track events across sprites and act on them.
Intro CS – Logic & Operators Lesson Plan 5. Goals  Students can explain basic logical operators  AND, OR, NOT  Students can create truth tables for.
Intro CS – Probability and Random Numbers Lesson Plan 6a.
Introducing Scratch Learning resources for the implementation of the scenario
Intro CS – Keyboard and mouse input Lesson Plan 7.
Introduction to Scratch
Intro CS – Costumes and Variables
Create a Halloween Computer Game in Scratch
Intro CS – Screens and Variables
Scratch for Interactivity
Intro CS – Loops, making animations & films
Intro CS – Loops & Creating Shapes
Madlib-Input, Strings, and Lists in Scratch
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.
© A+ Computer Science -
Intro CS – Probability and Random Numbers
Intro CS – Keyboard and mouse input
Intro to Programming with Scratch
Introduction to Object-Oriented Programming
Learn… Create… Program
Learn… Create… Program
Hour of Code.
Scratch for Storytelling
Getting Started with Scratch
Learn… Create… Program
Learn… Create… Program
CSC 221: Introduction to Programming Fall 2018
Presentation transcript:

Intro CS – Loops, making animations & films Lesson Plan 3

Goals  Understanding basic looping  Repeat Loop  Forever If  If  If-else  Wait Until  Repeat Until

Objectives  Students are introduced to the topic and given examples of looping  Students are given real problems to code and solve using loops  Results are demonstrated through demos of running code and displayed results

Pre Requisites  Basic Understanding of Scratch and Sprites  Students should have already created a Scratch program in LP 2 – Walking Cat that introduces them to repeat loops.

Materials  Slides with examples (or present on whiteboard)  PCs with development environments installed – Scratch

Lesson Description  Introduces the concept of the Repeat loop, providing simple examples of doing animation  Students practice and extend examples to their own wishes, and create new animations  Students present their solutions, typically F2F with the instructor(s) at their desk  Students analyze their and others’ solutions for bugs

Lesson Procedure  Intro/Trigger – Discuss looping in real life  Show how loops can be used to do animation and test for end states (Angry Birds)  Computers are great for doing things over and over for us, but they have to know when to stop (and we have to tell them when)  Show how loops can solve basic iteration/math problems  Doing something N times  Show basic examples of Repeat loop and discuss

Lesson Procedure (cont.)  Activity  Create a 1 minute animation that tells a story  Walk the room answering questions, looking over the shoulder, asking questions, etc.

Closure/Conclusion  Discussion  What are Repeat loops good for? What’s difficult in using them? How else can you use them?  Summary  Repeat loops: to repeat something N times  Ask questions on what is confusing or needs more time/practice

Agenda  Review what we learned about in the last lesson  Introduction to Scratch and created walking cat animation  This lesson we will concentrate on:  Sprites  Attributes  Methods  Sequences  Looping  Controls  Looks  Making an animation film

Loops – Making of animations and films Lesson Plan 3

Review of Last Lecture  What were some cool things we learned about in the last lecture?  What were some problems you had?  Any advice/tips for other students

Example Demo  Let’s look at an example of using sprites to make a quick film  Short Animation Short Animation  Give you guys 5 minutes to write a quick script of an animation you want to create today in class  Think about 2 sprites interacting with each other  How long should you wait between interactions?  Think about a story line

Sprites  Sprites are “actors” within your program/game, and you’re the director  They only do exactly what you tell them  When your program starts, you tell them where to go, how/when to move, and what to look like  Sprites have attributes and methods, what do you think this means?

Sprite Attributes  Sprite has “attributes” also known as description or property that tell something about it, such as:  center position (x-Position and y-Position) that can be adjusted when editing the sprite  direction it will move in  size in percent  actual costume  rotation type Center Position: (x-position, y-position)

Sprite Methods  Methods are commands we can use to tell the sprite what to do, and are created by using the colorful blocks in Scratch.  Move 10 “steps” (in the direction previously set)  Turn 20 degrees  Point to a direction (or another sprite)  “Glide” for 3 seconds to a location  Say something in a cartoon balloon Hello!

Sequence and Looping  Sequence is the arrangement of several blocks after another.  Looping is used when you want to execute a sequence several times.  What is this example doing?  More examples of loops:

Control  When clicked – you’re already familiar with this one  Used to get things set up where you want them, and to do anything else you want  Wait 23 seconds (or any other amount of time)  Repeat 3 times block (or any other number)  Again using loops to repeat an animation several times without copying or any additional work

Looks  Have your sprites say or think things in cartoon balloons  Change different effects for your sprite(s)  Color, fisheye, whirl, pixelate, mosaic, brightness, ghost  Feel free to experiment with these  Show/Hide  Go to front: important to keep sprites from overlapping badly  Go back 2 layers (or however many layers): can also be used for overlap

Daily project  By the end of class  Create your own Storyboard/Script using existing sprites. This should be in text format, such as:  Scene: Forest with frog an princess  Frog: Hey princess, what’s up?  Princess: I’m on a mission to save the kingdom  Etc.  Once you have a script, make an animation of it in Scratch  Must have a background, at least 2 actors, animation of the actors, and dialog

Example Demo  Take a quick look at how I did mine to give you guys some ideas  Short Animation Short Animation

Daily Project Continued  Worth 10 points total.  Remember to save your project and turn it into the homedirs “IntroToCS” folder!  File format: LP3-YourLastName_YourFirstName.sb  If you’re stuck remember you have the help tutorial and example files Grade Breakdown – Must IncludePoints 1) At least 2 spritesEach sprite is worth 1 point 2) Movement across the screen of at least 1 of the sprites, must use looping 2 points 3) Script on paper or in Word1 point 4) Clicking the green flag will start the animation1 point 5) Clicking on the space bar will result in some action1 point 6) At least 1 sprite must say/think something1 point 7) Change the background1 point 8) Change the color of a sprite on key click (your choice of key)1 point