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.

Slides:



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

Create a Simple Game in Scratch
In this tutorial, we are going to create: A race car that the user can control with the arrow keys for direction and speed. A simulated road with a striped.
Create a Simple Game in Scratch
Pong! “The oldest commercially available game in history” Resources created from the video tutorials provided by David Phillips on
Lets Play Catch! Keeping Score in Alice By Francine Wolfe Duke University Professor Susan Rodger May 2010.
How to make an educational Snakes and Ladders game in Scratch
Harry Potter Scratch Game
Adventures in Animation Harry Potter Game Pranali Choubal Kunal Shaw Barb Ericson Dec 2007.
Helicopter Game Tutorial
A Christmas Scratch game
Code Club Session 3 Shark Eats Fish. Picture of finished product here.
Write Your First Computer Game!. Coding: Programming Languages Just like you can speak Chinese to someone who understands Chinese to tell them what to.
Mrs. Chapman. Tabs (Block Categories) Commands Available to use Script Area where you type your code Sprite Stage All sprites in this project.
Scratch Programming Session 9 of 10 Review elements to use in stories, games, etc.
An intro to programming concepts with Scratch Session 7 of 10 sessions Working with sounds and sprite communication.
1 An introduction to programming concepts with Scratch (in 5 hours + homework)
Racing Car Game Using the keys to control a sprite.
Extending the Pong Example Barb Ericson Georgia Tech June 2011.
Digital Art in Scratch part 1 Barb Ericson Georgia Tech Oct 2010.
Mr. Wortzman. Tabs (Block Categories) Available Blocks Script Area Sprite Stage All sprites in this project.
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.
A Scratch tutorial. Description: You have 6 bullets to shoot at 2 targets. Every time you hit any of them you get two extra bullets but the targets get.
Scratch the Cat. Object Oriented Programing Writing computer programs Based on Objects Instead of Actions Based on Data Instead of Logic.
Scratch Internet- Open Chrome hit “Create” 1.
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.
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.
Play Road Game to understand the game Click on each sprite to understand its script Think about a different place that a sprite would have to get across.
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.
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.
Image #1 Getting Started
Making a Sprite Dance Barb Ericson Georgia Tech June 2011.
Create a Halloween Computer Game in Scratch Stephanie Smullen and Dawn Ellis Barb Ericson October 2008.
List Search Alice. Common Uses of Lists Iterating through a list of several like items to accomplish the same task with each item. As in the previous.
By Mr. Putnam. In Catfall, the goal of the game is to touch the falling cats with the mouse. Every time you touch a cat, your score goes up by one point.
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.
Using MIT Scratch for Programming and Control Exercise 4 – Cat and Dog game Year 9 ICT Autumn Term 2007.
List Search Alice. Common Uses of Lists Iterating through a list of several like items to accomplish the same task with each item. As in the previous.
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.
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.
Creating a Simple Game in Scratch Barb Ericson Georgia Tech May 2009.
CS320n – Elements of Visual Programming List Search Mike Scott (Slides 9-2) Thanks to Wanda Dann, Steve Cooper, and Susan Rodger for slide ideas.
Communicating between objects MESSAGE PASSING. CHALLENGE Can YOU do WHACK a MOLE in less than 5 minutes?????
Today, we'll learn how to remember numbers and make better games.
Scratch Helicopter Game
Create a Halloween Computer Game in Scratch
Dancing on Green Light.
Scratch for Interactivity
Exploring Mathematical Relationships Module 5: Investigation 3
© A+ Computer Science -
Scratch – Simple Programming
Scratch I - Overview.
Scratch Programming Intro
Scratch – Simple Programming
Go to =>
Image #1 Getting Started
Game Over Module 4 Lesson 2.
Exploring Computer Science Lesson 4-12
Game development using Scratch
Creating a Simple Game in Scratch
CSC 221: Introduction to Programming Fall 2018
Exploring Computer Science Lesson 4-12
Catch Game Cards Catch Game Cards Make a Card Go to the Top Fall Down
Scratch – Simple Programming
Presentation transcript:

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 and the player tries to whack them.  Use the mouse to move the hammer and the space bar to swing the hammer.  If the player scores more than 30 points then the winning message is broadcast. If not, the losing message is broadcast.

 Paint or import a stage with holes for the sprite to pop out.  Create a hammer sprite.  Create a mole sprite for each hole and place one over each hole.

 Create a new variable called “score”  Create a new variable called “time”  When the green flag is clicked: ◦ Set score to 0 ◦ Set time to 45  Create a loop which decreases time by one. Add a small delay for the countdown. Repeat the loop 45 times.  Add sound to indicate that time is up.

Add script to the hammer sprite so that it moves with the mouse. Use a loop.  Hint: use Add script to the hammer sprite so when the space key is pressed the hammer swings.  Hint: Instead of changing costumes use Add script to the hammer sprite so when the space key is pressed and the hammer hits a mole then the score increases.  Hint: This needs to done for every mole sprite.  Hint: If the hammer is ever covered by a mole then add

 When the green flag is clicked set a delay to show or hide the mole sprite.  Add a loop to delay showing the mole sprite and determine a how long you want to show that sprite.  Do this for each mole. Each one should have a different show and hide pattern.

 When the green flag is clicked set a timer for 1 second more than the value set in the time variable.  Check to see if the score is bigger than 30. ◦ If so, display the winning message. ◦ If score is smaller than 30 then display the losing message.  Add a delay to allow for all sounds to finish and add code to stop everything.