Session 5 of 10 Review + Multiple Sprites

Slides:



Advertisements
Similar presentations
Create a Simple Game in Scratch
Advertisements

Summer Computing Workshop. Introduction to Variables Variables are used in every aspect of programming. They are used to store data the programmer needs.
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)
1 An intro to programming concepts with Scratch Session 3 of 10 sessions Repetition and variations.
Code Club Session 3 Shark Eats Fish. Picture of finished product here.
Mrs. Chapman. Tabs (Block Categories) Commands Available to use Script Area where you type your code Sprite Stage All sprites in this project.
IT Systems What Number? EN230-1 Justin Champion C208 –
Binary Expression Numbers & Text CS 105 Binary Representation At the fundamental hardware level, a modern computer can only distinguish between two values,
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.
1 An introduction to programming concepts with Scratch (in 5 hours + homework)
1 An intro to programming concepts with Scratch Session 1 of 10 sessions Looks and Motion.
ITEC Winter An intro to programming concepts with Scratch Quick intro for college citizens. George Stockman MSU CSE.
Data Representation in Computers
Madlib-Input, Strings, and Lists in Scratch Barb Ericson Georgia Tech June 2011.
Scratch Understanding some programming techniques using Scratch Resetting, Parallelism and Events.
Mr. Wortzman. Tabs (Block Categories) Available Blocks Script Area Sprite Stage All sprites in this project.
You can type your own categories and points values in this game board. Type your questions and answers in the slides we’ve provided. When you’re in slide.
Hexadecimal and ASCII Lesson Objective: Understand the purpose of ASCII and how to use it. Lesson Outcome: Convert between Hexadecimal and ASCII Convert.
The Scratch Calculator You are all going to be real computer programmers!!!
An Introduction to Textual Programming
by Chris Brown under Prof. Susan Rodger Duke University June 2012
Ms. Deveny Second Semester  Introductions  Interview your table partner  Name  Why taking CPD  Computer experience  Favorite game?
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.
Data Representation S2. This unit covers how the computer represents- Numbers Text Graphics Control.
Section 3 Calculations National 4/5 Scratch Course.
Excel Spreadsheet Project 1. Objective: Begin to see the possibilities of Excel How to gather and organize data Entering formula’s Convert data into graphs.
©Robomatter – Distribution or copying without permission is prohibited. 3B STEM Computer Science 1 ©Robomatter – Distribution or copying without permission.
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.
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.
2015 CSE/EGR Summer Camps 1 Computer Science Concepts 1. What is an algorithm? 2. Binary information coding 3. Programming concepts via Scratch Designed.
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.
THE BINARY NUMBER SYSTEM “There are only 10 types of people in this world: Those who understand BINARY and those who do not.”
CONTROL FLOW The order in which blocks are executed is called the “control flow” of the script So far all our scripts have just executed blocks in the.
Create a Halloween Computer Game in Scratch Stephanie Smullen and Dawn Ellis Barb Ericson October 2008.
Cloning in Scratch Computer App Session 6. Cloning in Scratch Learning Objectives: I will clone sprites in Scratch to create copies of an existing sprite.
Introduction to Computer Programming - Project 2 Intro to Digital Technology.
Factorization : Difference of Two Squares and Perfect Squares.
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.
CRE Programming Club Class 2 (Import JJZ543 and Practice Your Typing!)
I have used Scratch, to program a guide to internet safety. This is done by using QR codes to make it more interactive and interesting for people playing.
Lives and Scoring Games Programming in Scratch. Games Programming in Scratch L2 Lives and Scoring Learning Objectives Define a variable Understand the.
Madlib-Input, Strings, and Lists in Scratch Barb Ericson Georgia Tech.
Introduction to Scratch We will be using the Scratch Environment today, so please log in to the Scratch website (scratch.mit.edu)
The language of computers Before we start you need to know an important fact. Anything to the power 0 is worth 1. You will need to remember this for later!
COMPUTER ORGANIZATION 4 TH LECTURE. ASCII Code  ASCII ( American Standard Code for Information Interchange).  Input and output devices that communicate.
WHAT IS BINARY? Binary is a number system that only uses two digits: 1 and 0. Any information that processed by a computer it is put into sequence of.
Scratch Programming Cards
Movement Game Design (Scratch).
Customise & Explain your game
Games Programming in Scratch
Madlib-Input, Strings, and Lists in Scratch
Scratch 7B IT1.
Spanish Mad libs with Scratch
A B C D E F G H U T S R Q P O N I J K L M Z Y X W V 6 Reset scores
Data Encoding Characters.
Learn… Create… Program
Learn… Create… Program
Introduction to TouchDevelop
Fundamentals of Data Representation
An intro to programming concepts with Scratch
Learning Intention I will learn how computers store text.
Game Over Module 4 Lesson 2.
Learn… Create… Program
Learn… Create… Program
Game development using Scratch
Presentation transcript:

Session 5 of 10 Review + Multiple Sprites Scratch Programming Session 5 of 10 Review + Multiple Sprites

Objectives for Session 5 Review Binary Review Algorithms Multiple sprites

Binary What is Binary? What Numbers are used in Binary?

Binary conversion Algorithm Convert 25 into binary 1/2 = 3/2 = 6/2 = 12/2 = 25/2 = 25 in Binary is 11001

Try these examples on your own: Convert to Binary: 36 52 67 1342 Bonus: convert this from binary to decimal 110011

The other way around How do you convert 11001 into Base 10 (our number system)? 16+8+0+0+1 = 33 16 8 4 2 1

Try these numbers 010101 011111 000011 32 16 8 4 2 1

Game 2 Teams (Left Side vs. Right Side) The number must be: Less than 7 digits in binary or Less than 100 in Base 10 2 Teams (Left Side vs. Right Side) Each team comes up with a number, in binary or in base 10 The other team has to convert it. 30 seconds to answer Highest Score after 5 rounds wins!

ASCII ASCII stands for the American Standard Code for Information Interchange It’s a way for computers to represent letters or characters in Binary Each letter or symbol gets a specific sequence of numbers

ASCII Example The character “A” is represented in binary as 01000001 The character “a” is represented as 01100001 All the characters are represented in some form of this binary code

Dr. Stockman’s Block Coding Activity Close Scratch Dr. Stockman’s Block Coding Activity

Algorithms What are Algorithms again? Instructions or Recipes for how to do a specific thing, such as find the area of a square What Algorithms have we done before? Area of a Square, Perimeter, Area of a triangle, Average number of people What other Algorithms can you think of?

Variable Practice Let’s calculate the distance between 2 points First, we ask the user for point 1 Ask “What is point 1” and wait Then we save that as a variable Set point1 to answer Now do the same for Point 2

Variable Practice Cont. Now we need to find the distance between the 2 points Set Result to Point2 – Point1 Say Result

Exercise: Calculate Average Age Calculate the Average of two ages Hints: 3 Variables (Age1, Age2, Result) Ask for Age1 and Age2 Average of 2 ages is (Age1+Age2)/2 Say the Result Show us when you’re done BONUS: Can you make it average more than 2 people?

Multiple Sprites So far, we’ve only been using a single sprite to do everything. Scratch is designed to handle more than one Sprite

Adding A new sprite On the bottom left panel of scratch, click “import sprite” Choose the sprite you want to import Click “okay”

Important things to know Notice that the scripts from your first sprite are NOT visible when you have this sprite selected Any scripts you add to this sprite will only work with THIS SPRITE.

Naming your sprites Something helpful when you have multiple sprites is Naming them something you’ll recognize later. Lets do this now:

Changing a Sprite’s name Click on the sprite whose name you want to change Click in the Box near the sprite’s picture Type in the new name and hit enter

Review You now know: How to convert a number to and from binary How computers recognize numbers and letters How to make an algorithm in Scratch How to add additional sprites to your Scratch Program