Intro CS – Costumes and Variables Lesson Plan 6. Goals  Understanding Costumes, Ordering, Naming  Switching Costumes with Switch and Next  Using Variables.

Slides:



Advertisements
Similar presentations
SCRATCH Lesson Two – Interactive Concepts Using Sensing, Operators, and Variables.
Advertisements

A Christmas Scratch game
Code Club Session 3 Shark Eats Fish. Picture of finished product here.
Scratch Programming Session 6 of 10 If-then-else statements interactions Final projects specifications.
Madlib-Input, Strings, and Lists in Scratch Barb Ericson Georgia Tech June 2011.
INTRODUCTION TO SCRATCH. About Me Resources Scratch Website Learn Scratch Washington-Lee Computer.
SCRATCH This Design Notebook belongs to:. 3 What are the different ways you interact with computers? List your answers here: 5.
Fish Chomp. The screen where you can see what happens when you play your game is called the STAGE. The SCRIPT BANK is where the types of instructions.
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.
CSCI 101 Introduction to Software Development and Design.
INTRODUCTION TO THE SCRATCH PROGRAMMING ENVIRONMENT.
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.
Exploring Computer Science 2/16/15
Pivot Introduction.
CoderDojo Roscommon. Today's Ninja Challenge: Create a GhostBuster Game Like This.
Exploring Computer Science 2/9/15 2/9Moving Scratch 2/10Moving Scratch worksheet 2/11 Scratch Baseball Game 2/12Scratch Alphabet Learning Game 2/13Game.
Variables. Todays Lesson  In todays lesson you are going to:  Learn to use variables  Learn to ask for user input  Learn to save the users response.
Fish Chomp. The screen where you can see what happens when you play your game is called the STAGE. The SCRIPT BANK is where the types of instructions.
Advanced Work with Embedded and Summative Assessment Dr. Steve Broskoske Misericordia University EDU 533 Computer-based Education.
Objective: To solve multi-step inequalities Essential Question: How do I solve multi-step inequality? Example #1 : solving multi-step inequalities 2x −
Intro CS – Screens and Variables Lesson Plan 9. Goals  Using sprites as full screens (Start screen, Game over)  Using layering to control ordering of.
Intro To Programming Project Presentation. Group Presentation All group members have to present part of the project. All group members have to present.
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.
UTILIZING SCRATCH FOR LESSONS. EngagementExplorationExplanation ElaborationEvaluation.
University Learning in Schools Computing Games Programming Lesson 5.
Randomising the behaviour of Sprites Games Programming in Scratch.
Today's Ninja Challenge: Write Your First Computer Game!
Lives and Scoring Games Programming in Scratch. Games Programming in Scratch L2 Lives and Scoring Learning Objectives Define a variable Understand the.
Making a Flappy Birds Game PART 2 – MAKING THE BIRD FLAP AND FALL – AND DEVELOPING THE GAME FURTHER (ADDING ADDITIONAL CHARACTERS, GOODIES, ENEMIES AND.
ICT/COMPUTING RULES Only use software allowed by the teacher
Madlib-Input, Strings, and Lists in Scratch Barb Ericson Georgia Tech.
>>0 >>1 >> 2 >> 3 >> 4 >>
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.
Event Driven Programs Exploring Computer Science – Lesson 4-5.
Index Background Costumes Making object walk smoothly Controlling an object with the keyboard Control an object with the mouse Changing costume when hit.
Intro CS – Keyboard and mouse input Lesson Plan 7.
Intro CS – Costumes and Variables
Customise & Explain your game
Intro CS – Screens and Variables
Broadcasting (Adding a new level)
Games Programming in Scratch
Intro CS – Loops, making animations & films
Intro CS – Loops & Creating Shapes
Madlib-Input, Strings, and Lists in Scratch
How to work with your sprite
© A+ Computer Science -
Spanish Mad libs with Scratch
Exploring Computer Science – Lesson 4-5
Intro CS – Probability and Random Numbers
Intro CS – Keyboard and mouse input
Randomising the behaviour of Sprites
Intro to Programming with Scratch
Scratch Programming Intro
Stopwatch Cards Stopwatch Cards
Playing with Pictures Module 1 Lesson 3.
Module 5 Lesson 3 Extreme Scratch Cards
Scratch – Simple Programming
Stopwatch Cards Stopwatch Cards
Exploring Computer Science – Lesson 4-5
Intro to Programming Mod 5 Lesson 2 10/19/2010.
ICT Gaming Lesson 3.
Flappy bird Demo: Lesson 5 Flappy bird Demo:
Stopwatch Cards Stopwatch Cards
Game Over Module 4 Lesson 2.
Mod 5 Lesson 1 Scratch Cards: Easy
Animate a Sprite. By M, M and C P6
Presentation transcript:

Intro CS – Costumes and Variables Lesson Plan 6

Goals  Understanding Costumes, Ordering, Naming  Switching Costumes with Switch and Next  Using Variables to control state  Changing costumes in a loop to animate a sprite  Show and Hide  Layering

Objectives  Students are introduced to the topic and given examples of costumes, animation through loops, and showing/hiding sprites based on conditions  Students are introduced to variables to store and retrieve information  Students are given real problems to code and solve  Results are demonstrated through demos of running code and displayed results

Pre Requisites  Repeat loops  Basic Understanding of Scratch, Sprites, IF blocks

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

Lesson Description  Students use variables to track sprite state, and animate sprites using costumes  Students practice and extend examples to their own wishes, and create costume animations  Students present their solutions, typically F2F with the instructor(s) at their desk  Students analyze their and others’ solutions for bugs

Lesson Procedure  Review last lessons: Repeat loops, IF blocks  Intro/examples of multiple costumes to show animation within a sprite  Using Next Costume to cycle through costumes  Setting a costume by name  Using variables to control speed of animation, applied color and graphics effects  Give exercises for in class practice (create their name with multiple sprites for each letter), and animate the sprites both through costumes and with movement (wiggle in place, slide across the screen, etc.)  Walk the room answering questions, looking over the shoulder, asking questions, etc.

Closure/Conclusion  Discussion  How can you use costumes for your Galaga enemy ships or Defender ship?  How can you use variables in your Galaga project?  Track/show score  Enemy lives  Defender hits before death  Power ups  Summary  Costumes are an easy way to make better looking programs  Variables are powerful for storing information for later use  Decisions/IF statements based on variables (bonus lives after score reaches a certain point?)  Storing information for later use  Tracking state  Ask questions on what is confusing or needs more time/practice

Costumes and Variables Lesson Plan 6

Example Demo  Today we will learn about variables and costumes, using these concepts and ones we have already learned we will create an animated billboard with our names (or whatever appropriate word or collection of sprites that you wish).  Demo – Name animation

Costume  What is a costume?  Costumes are an attribute, characteristic, or property of a sprite that helps change the look of the sprite.  What can we use costumes for?  Change the action of a sprite  Turn a sprite into something completely new  Change the background

Costume  What do these costume blocks do?  Switch the costume to #2  Switch the costume to the next one  Variable costume number

Variable  What is a variable?  Stores a value that can be reused in code.  Pros: if you want to change a number, you will only have to change it in one place.  Example how to create a variable and use it.

Example Demo  Demo of variable use (ballerina and animated name)

Daily project  By the next class: create an animated billboard.  Worth 10 points total. Save your project:  File format: LP6-YourLastName_YourFirstName.sb Grade Breakdown – Must IncludePoints Sprite initial positions are set in code 1 Contains at least 4 sprites2 Contains at least 3 costumes per sprite2 Contains 1-2 variables to control the animation2 Sprites animate through the costumes2 Sprites move and/or change effects1  Extra ideas if you want more challenges:  Use mouse or keyboard to trigger animation  Have one letter follow the mouse, and each letter follow the one in front of it  Use ghost effects to create fade-in movie banners

Extra activity 0 Use a variable to keep track of the score in a mini- game you create. 0 Add and remove from the variable when appropriate 0 Show the score during the game