Exploring Computer Science Lesson 4-12

Slides:



Advertisements
Similar presentations
Code Club Session 3 Shark Eats Fish. Picture of finished product here.
Advertisements

This game is loosely based on the Whack-A- Mole arcade game.  Each game starts with 45 seconds of play.  Moles randomly pop out of holes on the landscape.
Scratch Programming Session 9 of 10 Review elements to use in stories, games, etc.
4.3 Systems of Equations - Elimination Objective: The student will be able to: Solve systems of equations using elimination with addition and subtraction.
Meet Me on Mars Lesson 7 Variables and Messages. Events and Variables 1. Click the _________ button 2. When ________ clicked, set ______ to ____ 3. Now,
Scratch the Cat. Object Oriented Programing Writing computer programs Based on Objects Instead of Actions Based on Data Instead of Logic.
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.
We will be creating a spaceship that simulates real movements in space. The spaceship will fire a laser beam that can destroy targets. The spaceship will.
My Scratch Story Exploring Computer Science Lesson 4-7.
I put this into my scratch so that when the green flag was clicked to start the game, and wait an amount of seconds before the QR changes.
Dr. Fowler CCM Solving Systems of Equations By Elimination – Harder.
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.
Setting up and getting going with…. MIT App Inventor.
Moving Sprites in Scratch Exploring Computer Science – Lesson 4-4.
Scratch Programming Lesson 4 Question asking and answering.
Scratch Dialogues Exploring Computer Science – Lesson 4-3.
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.
Unit 1 Introduction to Evangel College S.2 ICT.
Marble Racer. 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.
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 basic game in Scratch. The Scratch Stage The Scratch stage is 480 pixels wide and 360 pixels high x increasesx decreases.
Moving Sprites in Scratch Exploring Computer Science – Lesson 4-4.
Scratch – Simple Programming
1 Understand what Scratch is and what it can be used for Lesson 1: Learning Objectives.
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.
Introduction to Programming with Scratch Exploring Computer Science – Lesson 4-1.
Randomness Exploring Computer Science Lesson 4-10 – Part 2.
Event Driven Programs Exploring Computer Science – Lesson 4-5.
Dancing on Green Light.
Games Programming in Scratch
Computer Science A-level
© A+ Computer Science -
Exploring Computer Science Lesson 4-7
Exploring Computer Science – Lesson 4-5
Exploring Computer Science Lesson 4-13
Exploring Computer Science Lesson 4-14
Exploring Computer Science Lesson 4-10 – Part 1
Diamond Hunt Mock Programming Project.
Scratch I - Overview.
Introduction to Object-Oriented Programming
Stopwatch Cards Stopwatch Cards
Computing - Scratch.
Module 5 Lesson 3 Extreme Scratch Cards
Exploring Computer Science Lesson 4-14
And and or…and RANDOMNESS
Lesson Objectives To understand how to make sprites interact
To get y, multiply x by 3 then add 2 To get y, multiply x by negative ½ then add 2 To get y, multiply x by 2 then subtract 3 To get y, multiply x.
Moving Sprites in Scratch
Exploring Computer Science Lesson 4-13
Stopwatch Cards Stopwatch Cards
Exploring Computer Science – Lesson 4-5
Add or Subtract? x =.
Exploring Computer Science – Lesson 4-3
10 SCRATCH bLOCKS lesson 1 10 Blocks.
Exploring Computer Science Lesson 4-7
Stopwatch Cards Stopwatch Cards
Game Over Module 4 Lesson 2.
Exploring Computer Science Lesson 4-12
Stopwatch Cards Stopwatch Cards
Exploring Computer Science Lesson 4-10 – Part 2
Exploring Computer Science Lesson 4-14
© A+ Computer Science -
Exploring Computer Science Lesson 4-13
Stopwatch Cards Stopwatch Cards
Computer Science A-level
Exploring Computer Science Lesson 4-8
Stopwatch Cards Stopwatch Cards
Exploring Computer Science Lesson 4-10 – Part 1
Presentation transcript:

Exploring Computer Science Lesson 4-12 Timers Exploring Computer Science Lesson 4-12

Objectives The students will be able to: Create a timer

Timers Timers are simply a variable that counts down (or up). You already know how to initialize a variable You know how to add or subtract one You know how to “wait” 1 second Bottom line – You know how to make a timer! I don’t need to teach you.

Timer Project How to make a timer in Scratch: Create a variable called timer. When the flag is clicked, initialize the timer to 10. Continually, wait 1 second and subtract one from timer Output the current time either with a sprite or just show the variable DO NOT USE A REPEAT 10 Check if the timer = 0 If the timer = 0 make either the background or a huge sprite say “Time’s Up” When the green flag is clicked, everything should start over. Be creative as to what you want your program to look like. Make sure the timer stops at 0 and does not continue into negatives.