In this project you ll learn how to create a football game in which you have to score as many goals as you can in 30 seconds.

Similar documents
Table Football. Introduction. Scratch. Let s make a world cup football game in Scratch! Activity Checklist. Test your Project.

SCRATCH CHALLENGE #3

You are going to learn how to make a game, in which you ll use the mouse to navigate a boat to a desert island.

Start a new Scratch project. Delete the cat by right-clicking it and selecting Delete.

Step 1. CoderDojo Milltown Exercise 1 Pong Page 1 of 13

The Final Fight STAGE. * Download file Scratch Stage 9. Chapter Objective. The Game

Boat Race. Introduction. Scratch. You are going to learn how to make a game, in which you ll use the mouse to navigate a boat to a desert island.

Boat Race. Introduction. Scratch

Penalty Kick in Ipanema

Scratch Hands-on Assignments CS4HS - Summer 2017

3. Select a colour and then use the Rectangle drawing tool to draw a rectangle like the one below.

BBoard PONG game. Creative Computing #1

1. First start a new scratch project and remove the default sprite.

Start - All Programs - Class Software - Scratch - Scratch move move move Sound play drum move move move play drum Control forever forever forever

Felix and Herbert. Level. Introduction:

Felix and Herbert. Level

Get it here. Page 1 of 7 Date:Jan 8, 2014

Encountering Condi.ons

Activity 8: Cave Surfing Game

First Edition. Teaching Scratch. at primary school. Thomas Arts

WASHINGTON STATE MIDDLE SCHOOL COMPUTER SCIENCE COMPETITION

WASHINGTON STATE MIDDLE SCHOOL COMPUTER SCIENCE COMPETITION

Lets Play Catch! Keeping Score in Alice. Overview. Set Up. Position the ball 20 feet away: Orienting the ball 7/19/2010

10 WEEK LESSON PLAN (COVER PAGE) INCLUDE A SANFL LOGO. Activity Booklet

Windspeed WS1. English

KIOSK: SCORE CENTRE USER MANUAL RCGA Network Kiosk: Score Centre User Manual

Custom Boarding Feature

Old Kings Oval Electronic Scoreboard. Scoreboard Operation and Advanced Scoring Instructions

OZCHASE RACING - ONLINE NOMINATIONS USER GUIDE - Ozchase Online Nominations User Guide Page 1 of 28

American Thoroughbred Handicapping Program

Racing at Hollowell. How to run the Racing. 22 July 2015 Hollowell Sailing Club Mike Pipes;Ian Hall, Larissa, Clive

Using the GHIN Handicap Allocation Utility with GHP Golfer

SWIM MEET MANAGER 5.0 NEW FEATURES

OrbBasic 2: Student Guide

ROYA BOWLING TEAM REGISTRATION INSTRUCTIONS

Step 1: Log into Tennis link or create an account if you don t have one yet:

OZCHASE ONLINE NOMINATIONS USER MANUAL (FOR ALL STATES)

Slide 1 - Welcome to an Overview of the Student Center and New Titan Online

XSQUARE SPORTS United States. How it Works.

Jackpot Rodeo - A Tutorial

2010 NFHS Volleyball Rules Video Script Points of Emphasis

HOW TO SETUP ROUND ROBIN IN DARTS FOR WINDOWS

Electronic Recording Using FieldLynx Grade 2 ERD Skills

Write Your Own Twine Adventure!

INTRODUCTION TO SIGNAL TIMING & TRAFFIC CONTROL

RUNNING MEET MANAGER IN SUPPORT OF MEETS (2016) Greg Wright(6/3/16) First, YOU DO NOT NEED TO DO THIS UNLESS YOU ARE THE HOME TEAM

SPORTS TG ELECTRONIC TEAM SHEETS AND RESULTS ENTRY SOUTH AUSTRALIAN AMATEUR SOCCER LEAGUE

First-Time and Repeat Angler Analysis: Key Findings & Next Steps December 11, 2013

DRGR FACT SHEET: Release 7.13 QPR Review

2013 NCAA Rules and Mechanics Changes

Website User Guide for Walk Organisers

Integrated Sports Systems (ISS) Inc. Meet Management Suite

Play Cricket Scoring App V 3.0 Four Ways of Scoring on the App 1) Both Innings Ball by Ball

The Abingdon Co. Marina PRODUCT INFORMATION AND MANUAL

Trion PECVD SOP IMPORTANT: NO PLASTIC, TAPE, RESISTS, OR THERMAL PASTE ARE ALLOWED IN THE CHAMBER

1/6 CAL.YM88 1/5 SECOND CHRONOGRAPH WITH COUNTDOWN TIMER. Instructions. Features 24-hour, Hour, Minute and Small second hands.

Heart Foundation Walking Website user guide for Walk Organisers

2016 VWFL TEAM MANAGER S HANDBOOK

Foreword. Craig Morris. Dear Manager,

Micro Environmental Control Systems Woda Sci Sump Sprinkler and Home Water Control System Manual Contents

USA Jump Rope Regional Tournament Registration User Guide 2014 Edition

iregatta User Manual

Parent Guide for Creating Dismissal Exceptions School Year

How to Set Up Your League

Gross Motor Development Checklist

Section I. Field of Play

OAKVILLE MINOR LACROSSE ASSOCIATION HOUSE LEAGUE COACHES HANDBOOK

To register your AED at the National AED Registry please go to and click on Get Started

Operation of the contact mask aligner Canon PPC 210 Projection Print Camera

12. A1 is setting a screen against defender B1. Must A1 face B1 for the screen to be legal?

FIRST Tech Challenge Scorekeeper Manual Part II: Scoring System Guide (For Non-League Event Types)

Summer Session 2014 Match Results Entry and Verification Instruction Manual

New York State Girls Basketball Officials Association Rules and Mechanics Examination Open Book

Dive Planet. Manual. Rev Basic User Interface. 2 How to organize your dives. 3 Statistics. 4 Location Service and Map View.

KIV-SACS Safe automatic calibration system:

Software for electronic scorekeeping of volleyball matches, developed and distributed by:

- WATER SAFETY- WORKSHEET BOOKLET

Sport NGIN has two applications, which can be used to score games.

DISHIN & SWISHIN GRADING. Club grade entries A/AR B1 B2 B3 C1 C2 C3 D1 D2 D3 KN1 BT1 BT3 WR1 BT4 MC1 PK1 BWN2 IVE2 KN3 E1 BT2 BWN1 KN2 CW2 PK2 PK3

Computer Scorekeeping Procedures Updated: 6/10/2015

Everything You Need to Know About Adult Flag Football

Quarterback Progression Process

CLASSROOM CHALLENGE PART 3: COMPETE TEACHER GUIDE

CONTENTS. Welcome to Season Setup in Play Football Setting Up Our Details Setting up Age Groups... 9

USA Jump Rope Tournament Software User Guide 2014 Edition

Managing Timecard Exceptions

Goal Umpire - Function

CGA INTERCLUB COMPETITION

Maestro 3 rd Party Golf User Guide

Control keyboard. BODET Scorepad. BODET SA BP Trémentines I France Tel: +33 (0) Fax: +33 (0)

RULE BOOK FOR REDZONE FLAG FOOTBALL -CHAMPION 03/18/2017 THE ATTIRE RULES

GROSS MOTOR SKILLS DEVELOPMENT CHECKLIST

The Race Director. Race Director Go [RACE DIRECTOR GO] This document describes the implementation of Race Director Go with a beginning to end example.

Alice in Wonderland Tea Party Coding Animation

Gross Motor Therapy Procedures

Australian Galloway Association Internet Registrations Recording Registrations Online

LEGO Engineering Conferences ROBOLAB and MINDSTORMS Education Version 4.5 March 2008

WABL Stadium Scoring User Guide

BVIS Beach Volleyball Information System

Meet Central App Help Guide

Transcription:

Beat the Goalie Introduction In this project you ll learn how to create a football game in which you have to score as many goals as you can in 30 seconds. Step 1: Moving the football Let s code the ball to move across the bottom of the stage. Activity Checklist Open the Beat the Goalie Scratch project. Your club leader will give you a copy of this project, or you can open it online at jumpto.cc/goalieresources. Click on your football sprite. Add this code, so that the football moves along the bottom of the screen until the space bar is pressed. 1

Click the green flag to test your project. Your football should bounce along the bottom of the screen until the space bar is pressed. Add this code to your football sprite, so that the football moves towards the goal after the space bar has been pressed. Click the green flag to test your code. This time, press the space bar 2

and your football should move towards the goal. Click the green flag to test your code. What happens if you click the flag a second time? Can you use this block to fix the problem? go to x: -180 y: -140 Save your project Step 2: Was it a goal? Once the ball has reached the goal, there s a decision to make. If the ball is touching the goalie then it has been saved, else it s a goal. Activity Checklist Add this code to the end of your football sprite code, so that you can check whether the ball is touching the goalie. 3

Play the rattle sound if the goalie has saved the ball. You can also broadcast a message to the goalie, so that they can tell you that the ball has been saved. Broadcast a save message when the ball has been saved. You can now code your goalie to say Save! when they receive the message. 4

Test your code by trying to score a goal. If your goalie saves the goal they should say Save!. Save your project Challenge: Goal! Can you play a sound and code your goalie to say Goal! when a goal has been scored? Remember that a goal has been scored if the ball is not touching the goalie. 5

Here are some code blocks you ll need: Save your project Step 3: Adding a timer Let s add a timer, so that the player has to score as many goals as they can in 30 seconds. Activity Checklist First, you ll need to click Data, then click Make a Variable and create a new variable called timer. 6

You should now see your new variable on the stage. You should also see some new variable blocks that you ll use to make your timer. Click on your stage, and add this code to set the timer to 30 at the start of the game. 7

Next, you ll need to add a repeat until block, so that the timer can run until it gets to 0. Reduce your timer by 1 every second until it reaches 0. Once the timer has reached 0, you should play the whistle sound and then stop the game. 8

Click the green flag to test your code. Your timer should start at 30, and end at 0. You can change your timer to start at 10 if you don t want to wait for 30 seconds! You only have the chance to score 1 goal! To have more than 1 chance, add a forever block around your football sprite. You can also add a wait block between attempts. 9

Save your project Challenge: Adding a score Can you add a score variable to your game? You should set the score to 0 at the start of the game; You should add 1 to your score every time a goal is scored. Here s the code you ll need: Save your project 10

Step 4: Control the goalie It s far too easy to score a goal! Let s allow a second player to try and save goals. Activity Checklist Click on your Goalie sprite and add this code to change the goalie s x position when the left arrow is pressed. Press the left arrow to test your new code. Your goalie should move to the left. Have you noticed that your goalie doesn t move very smoothly? If you want smoother movement, you can use this code instead of the code you just added. Test your code again, this time by clicking the green flag and then holding the left arrow key. Does your goalie move more smoothly? 11

Save your project Challenge: More controls Can you code your goalie to move to the right when the right arrow key is pressed? You can use either of the 2 ways above. You could even use this code (in a separate script) to make your goalie jump when the up arrow key is pressed: repeat 10 change y by 10 repeat 10 change y by -10 Save your project Challenge: Manual control Instead of the ball moving left and right automatically, can you allow your player to control the ball with the a and d keys? To do this you ll need to remove the code for moving the ball left and right. 12

You can then add code to move the ball when the keys are pressed. Here are some code blocks to help you: Save your project 13