Intro CS – Loops, making animations & films

Slides:



Advertisements
Similar presentations
Summer Computing Workshop. Introduction to Variables Variables are used in every aspect of programming. They are used to store data the programmer needs.
Advertisements

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)
Scratch for Storytelling Dr. Ben Schafer Department of Computer Science University of Northern Iowa.
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.
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!
Getting Started With HTML HTML code needs an editor for a programmer to be able to use. We can use Notepad on a PC or TextEdit on a Mac. However, it is.
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.
Digital Art in Scratch part 1 Barb Ericson Georgia Tech May 2011.
Making a Sprite Dance Barb Ericson Georgia Tech June 2011.
Scratch Programming Lesson 3 Create a story. We are going to learn… How to change the background How to use the “say” and “think” bubbles How to change.
Intro CS – Screens and Variables Lesson Plan 9. Goals  Using sprites as full screens (Start screen, Game over)  Using layering to control ordering of.
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.
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 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 
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.
Intro CS – Loops, making animations & films Lesson Plan 3.
Intro CS – Keyboard and mouse input Lesson Plan 7.
Review for Final June 13, 2016.
Introduction to Scratch
Intro CS – Costumes and Variables
Create a Halloween Computer Game in Scratch
Intro CS – Screens and Variables
Scratch for Interactivity
Interacting Sprites Module 3: Investigation 1
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.
How to work with your sprite
© A+ Computer Science -
Spanish Mad libs with Scratch
Intro CS – Probability and Random Numbers
Intro CS – Keyboard and mouse input
Intro to Programming with Scratch
Unit 2 Getting Started With
Introduction to Object-Oriented Programming
Learn… Create… Program
EXPLORING COMPUTER SCIENCE
Learn… Create… Program
Hour of Code.
Introduction to scratch animation
Scratch for Storytelling
Moving Sprites in Scratch
Exploring Computer Science Lesson 4-7
Building a Game in Scratch
Game Over Module 4 Lesson 2.
Getting Started with Scratch
Learn… Create… Program
Learn… Create… Program
© A+ Computer Science -
Creating a Simple Game in Scratch
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 Summary 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 LP ideas from: http://www.cs.uni-potsdam.de/~romeike/UEWettbewerb/index-english.htm

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 Show how to go from storyboarding to creating an animation.

Example Demo Let’s look at an example of using sprites to make a quick film 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 Show how to go from storyboarding to creating an animation.

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? What are sprites, we learned about them in the last lesson? What do you think sprite attributes and methods mean?

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 Sprite Attributes: characteristics of the sprite/character, what are some examples you can think of? What are sprite methods? 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! What are some of the methods you used in your Walking Cat program? What method do you think we would use to make our character the cat say something in a speech cartoon bubble?

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: Last lecture we talked about looping and using the repeat and forever loops to make your character keep doing something. What do you guys think the term sequence means?

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 Does anyone remember what the control bucket blocks allowed you to do? What happens when you click the green flag?

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 What kind of blocks were in the Looks category? What were some useful things you guys found in there, that helped with overlapping?

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 Show how to go from storyboarding to creating an animation.

Daily Project Continued Worth 10 points total. Call me over when you're done to score If you’re stuck remember you have the help tutorial and example files Grade Breakdown – Must Include Points 1) At least 2 sprites Each 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 Word 1 point 4) Clicking the green flag will start the animation 5) Clicking on the space bar will result in some action 6) At least 1 sprite must say/think something 7) Change the background 8) Change the color of a sprite on key click (your choice of key)