Scratch Internet- Open Chrome hit “Create” 1.

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
Harry Potter Scratch Game
Adventures in Animation Harry Potter Game Pranali Choubal Kunal Shaw Barb Ericson Dec 2007.
Code Club Session 3 Shark Eats Fish. Picture of finished product here.
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.
Learn… Create… Program. Manipulation of Multiple Media Connects with youth culture Scratch is a new graphical programming language designed to support.
1 An introduction to programming concepts with Scratch.
ITEC Winter An intro to programming concepts with Scratch Quick intro for college citizens. George Stockman MSU CSE.
Extending the Pong Example Barb Ericson Georgia Tech June 2011.
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.
Game Design Creating a game called PING Phase 3: Steps for building basic game.
Working with Numbers in Alice - Converting to integers and to strings - Rounding numbers. - Truncating Numbers Samantha Huerta under the direction of Professor.
Using MIT Scratch for Programming and Control Exercise 3 Ball Game Year 9 ICT Autumn Term 2007.
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.
Introducing Scratch the Cat
2015 CSE/EGR Summer Camps 1 Computer Science Concepts 1. What is an algorithm? 2. Binary information coding 3. Programming concepts via Scratch Designed.
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.
Introduction to Programming G50PRO University of Nottingham Unit 2 : Introduction To Scratch Paul Tennent
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.
Digital Art in Scratch part 1 Barb Ericson Georgia Tech May 2011.
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.
Creating a Simple Game in Scratch Barb Ericson Georgia Tech June 2008.
OPTIONS Create a Group Create an Event Mobile App Scoring Verify Results View Results Posting Scores (automatic) Getting Started – Dashboard Features.
Image #1 Getting Started
Create a Halloween Computer Game in Scratch Stephanie Smullen and Dawn Ellis Barb Ericson October 2008.
Variables and Random Numbers Computer App Session 4.
Scratch Creative Computing. INTRODUCTION TO SCRATCH Section 1.
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.
Open a new Flash File Action Script 2.0. Create a button like you did last lesson and name it Click to Play.
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.
Introduction to Computer Programming - Project 1 Intro to Digital Technology.
Scratch for Interactivity Dr. Ben Schafer Department of Computer Science University of Northern Iowa.
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.
Creating a Simple Game in Scratch Barb Ericson Georgia Tech May 2009.
Introducing Scratch Learning resources for the implementation of the scenario
Game Maker Tutorials Introduction Clickball IntroductionClickball Where is it? Shooting Where is it?Shooting.
School of Computer Science Space School 2015 Programming a Lunar Lander Game.
Review for Final June 13, 2016.
Create a Halloween Computer Game in Scratch
Scratch for Interactivity
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.
Scratch for Interactivity
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Introduction to Object-Oriented Programming
Scratch Programming Intro
VISUAL BASIC FINAL PROGRAMMING PROJECT
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Introduction to TouchDevelop
Lesson Objectives To understand how to make sprites interact
Go to =>
Building a Game in Scratch
Game Over Module 4 Lesson 2.
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Game development using Scratch
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Creating a Simple Game in Scratch
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Catch Game Cards Catch Game Cards Make a Card Go to the Top Fall Down
Scratch – Simple Programming
Presentation transcript:

Scratch Internet- Open Chrome hit “Create” 1

Agenda: Intro to Scratch Intro to programming concepts Create game of “War” Objective: Students will create a game of war that uses programming concepts such as variables and operators. 2

First we will make a variable called “Player 1 Card”. 1.Select Data 2.Make a Variable 3.Name the Variable “Player 1 Card” 3

Once you have created the variable “Player 1 Card” additional programming options appear on the Data menu and it appears on the stage. A variable is a “placeholder” in a program that can change in value. We will be programming “Player 1 Card” to select a random value between 1 and 10 later in this lesson. 4

Make the following variables: 1. Player 2 Card 2. Player 1 Score 3. Player 2 Score We will repeat the steps used to make a variable. 1.Select Data 2.Make a Variable 3.Name the Variable 5

You should now have the four variables in your program. 6

Click and drag the variables to separate the players. Player 2 Player 1 7

Now we will program our game to pick card values for each player. We do this by the following: 1.Under “Events” select 2.Select Data tab 3.Set “Player 1 Card to” (leave the space blank) 4.Select Operators tab. 5.Select “pick random (1) to (10)” and drag it into the blank space from Step You will need to do this for both of the Player Cards 8

We will now program the game to award a point to the player that has the higher card value. Click and Drag the Following Blocks:  “If then” (Control Tab)  “Player 1 Card” (Data Tab)  “Player 2 Card” (Data Tab)  “Change Player 1 Score” (Data Tab)  “Greater Than” block (Operators Tab) Arrange the blocks according to the picture. 9

We will now program the Cat to announce that Player 1 wins the round. 1. Select the “Say “Hello” for ___ secs” (Looks tab) 2. Change the text to read “Player 1 Wins the Round” and change the time to “2”. 10

We will now repeat the process for when Player 2 Card is greater than Player 1 Card. 1. Separate this section of the code. 2. Right click on the block and select duplicate. After you have duplicated the blocks, change the values in the duplicated block to award Player 2 a point. 11

An important step in Computer Programming is to check your programs as they are in development to make sure they work properly. Take a moment to test your program to make sure there are no “bugs” in it. Press the space bar several times to test the program. It should show a number for each player and award a point to the player that won. 12

We will now program the game to declare a winner when a player gets to 10 points. For this we will use the following blocks: We will need the following blocks:  “If then” (Control Tab)  Player 1 Score (Data Tab)  “Equal to ” (Operators Tab)  “Say Block for ____ secs” and the “Say Block” (Look Tab) Arrange them in the following order. 13

We will now repeat the process for Player 2 Detach the player “if then” block you just created. Right click and select duplicate. Change the information so that it reads as follows. 14

We will now set up the “Reset” button. Select “when green flag clicked” from the Events tab. From the Data tab select the “set__________ to 0”. You will need to do this 4 times. Connect the blocks as shown to the right and assign each of the variables to a block. 15

Extensions 1.Program the cat to say “It’s a tie” when the players’ cards are equal to each other. 2.Program the cat to say what the value of the winning card is in each round. 16