Event Driven Programs Exploring Computer Science – Lesson 4-5.

Slides:



Advertisements
Similar presentations
Sprite-visual object (actor on the stage) Scripts- Tells actors (sprites) what to do.
Advertisements

Input Devices Grade K-Digital Citizenship. Outcome: Students will identify input computer devices and what they do. Digital Citizenship.
Grade K-Digital Citizenship
Input and Output Devices Grade 1-Digital Citizenship.
Michael Parkes Dudley LA What can Scratch do? Make simple games, animations, presentations and stories.
Mission Technology Introduction to Scratch! June 2007.
Events The brown events block in Scratch starts script's when certain things happen. For example, when the user presses a key, clicks sprites, or uses.
Harry Potter Scratch Game
An intro to programming concepts with Scratch Session 7 of 10 sessions Working with sounds and sprite communication.
Racing Car Game Using the keys to control a sprite.
CREATE AN ANIMATED STORY CODERDOJO NOVA – SCRATCH WHITE BELT.
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.
Scratch the Cat. Object Oriented Programing Writing computer programs Based on Objects Instead of Actions Based on Data Instead of Logic.
Introduction to.
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.
Timers Exploring Computer Science Lesson Objectives The students will be able to: Create a timer.
Summer Computing Workshop. Session 2 Input in Scratch  Multi-Character input - This is used when the user is prompted to enter a number or word.  Problems.
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.
Introducing Scratch the Cat
Exploring Computer Science 2/16/15
My Scratch Story Exploring Computer Science Lesson 4-7.
Learning the skills for programming Advanced Visual Programming.
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.
Exploring Computer Science 2/2/15 2/2No School 2/3Scratch creating a program- Name 2/4 Scratch creating a program Dialogue 2/5 Scratch creating a dialogue.
1 Understand how to use Scratch to: – Animate a sprite – Add sound to your script – Use the forever command to create a loop Lesson 2: Learning Objectives.
Moving Sprites in Scratch Exploring Computer Science – Lesson 4-4.
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.
Scratch Dialogues Exploring Computer Science – Lesson 4-3.
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.
Unit 3 Music and Sound Evangel College S.2 ICT.
Image #1 Getting Started
Scratch Another computer programming language Developed by MIT in 2003
Unit 1 Introduction to Evangel College S.2 ICT.
Algorithms in Scratch How to plan your code. Algorithms Algorithms provide computers with a set of instructions or a set of rules. They are written BEFORE.
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.
 SCRATCH is a new programming language that lets you create your own interactive stories, animations, games, music, and art.
Moving Sprites in Scratch Exploring Computer Science – Lesson 4-4.
Pac Man Game To make the pac man game. I created sprites for the pac man character so he could move in all directions. I also created sprites for the wall.
1 CSC 221: Computer Programming I Fall 2009 Introduction to programming in Scratch  animation sprites  motion, control & sensing  costume changes 
Scratch Lesson 1. Creating an account Open the internet browser : Safari or Internet Explorer Type in the URL scratch.mit.edu Using your school computer.
Introduction to Programming with Scratch Exploring Computer Science – Lesson 4-1.
Introducing Scratch Learning resources for the implementation of the scenario
TODAY’s LESSON IS ABOUT:
© A+ Computer Science -
Exploring Computer Science Lesson 4-7
Exploring Computer Science – Lesson 4-5
Exploring Computer Science Lesson 4-13
Programming Final Project
Exploring Computer Science Lesson 4-10 – Part 1
Name Project April 12,2016.
Getting Started with Scratch
EXPLORING COMPUTER SCIENCE
And and or…and RANDOMNESS
Moving Sprites in Scratch
Exploring Computer Science Lesson 4-13
Exploring Computer Science – Lesson 4-5
Exploring Computer Science – Lesson 4-3
Programming Final Project
Exploring Computer Science Lesson 4-7
Intro to Programming Mod 5 Lesson 2 10/19/2010.
Image #1 Getting Started
Exploring Computer Science Lesson 4-12
Getting Started with Scratch
Exploring Computer Science Lesson 4-13
Introducing Scratch and Creating Sprite
Exploring Computer Science Lesson 4-12
Exploring Computer Science Lesson 4-8
Exploring Computer Science Lesson 4-10 – Part 1
Presentation transcript:

Event Driven Programs Exploring Computer Science – Lesson 4-5

Journal Entry How do programs know what to do next? In other words… If you are surfing the web, how does the computer know what page to go to next? Or… If you are playing Call of Duty: Ghosts, how does the game know what you want to do?

Event Driven Programs The programs you have written so far have really just been animations. You click the and then sit back and watch what happens. In all these cases the program controls the action. In an event driven program, the user controls the actions by typing a key, clicking the mouse, etc. The outcome of the program is not known in advance.

Scratch Event Blocks Scratch event blocks are found in the control section and have a shape like this: You have already used one event block!

Scratch Event Blocks There are 2 more event blocks: When a sprite is clicked When _ key is pressed

Your First Game You will be creating an Alphabet Learning Game.

Alphabet Game Requirements 1.Have at least 10 different letters. 2.Have a theme for your letter game (i.e. animals, food, etc.) 3.Sprites change costume when clicked on. 4.Sprites change costume when letter is typed on keyboard 5.Use the “say _ for _ sec” to output what the letter stands for (i.e. “E is for Elephant”) 6.Sprites all turn to letters when the “when green flag clicked”

Alphabet Game – Extra Credit For extra credit… Use a sound file or a microphone to record sounds for all the letters and play the sound when the letter is clicked or typed (i.e. “E is for Elephant” or the sound of an elephant)

Rubric Do you have? Points Possible Have at least 10 different letters.20 Have a theme for your letter game (i.e. animals, food, etc.)15 Sprites change costume when clicked on.20 Sprites change costume when letter is typed on keyboard20 Use the “say _ for _ sec” to output what the letter stands for (i.e. “E is for Elephant”) 15 Sprites all turn to letters when the “when green flag clicked”10 Extra Credit Use a sound file or a microphone to record sounds for all the letters and play the sound when the letter is clicked or typed (i.e. “E is for Elephant” or the sound of an elephant) 10 TOTAL:100