SCRATCH CHALLENGE #3

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

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

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

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

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.

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.

Felix and Herbert. Level

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

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

Felix and Herbert. Level. Introduction:

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

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

Scratch Hands-on Assignments CS4HS - Summer 2017

Penalty Kick in Ipanema

BBoard PONG game. Creative Computing #1

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

Write Your Own Twine Adventure!

Managing Timecard Exceptions

Microsoft Windows Software Manual for FITstep Stream Version 4

Step One - Visiting the School Zone:

Booking Tee-Times on a Computer

Boyle s Law: Pressure-Volume Relationship in Gases

To Logon On to your tee sheet, start by opening your browser. (NOTE: Internet Explorer V. 6.0 or greater is required.)

Activity 8: Cave Surfing Game

Gas Pressure and Volume Relationships *

QUICK WARM UP: Thursday 3/9

Group walks & events manager: Getting Started for Contributors

Dive Sheets & Running Events Meet Management Software Tutorial for EZMeet Version 3.1 revised 2/4/2006

The SIS Shopping Cart

The ICC Duckworth-Lewis Calculator. Professional Edition 2008

Page 1 Make more profit from your betting at Betting Speed Evolution and the Race Advisor

Group walks & events manager: Getting Started for Editors

ISCORE INTEGRATION IOS SCORING GUIDE

Heart Foundation Walking Website user guide for Walk Organisers

DRGR FACT SHEET: Release 7.13 QPR Review

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

Robot Activity: Programming the NXT 2.0

National Curriculum Statement: Determine quartiles and interquartile range (ACMSP248).

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

APBA Baseball for Windows 5.75 Update 17

23 August 2016 Page: 1

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

Website User Guide for Walk Organisers

TECHNICAL NOTE HOW TO USE LOOPERS. Kalipso_TechDocs_Loopers. Revision: 1.0. Kalipso version: Date: 16/02/2017.

English. Golf NAVI. User Guide V1.0.0

APBA Baseball for Windows 5.75 Update 22

Access will be via the same Player Registration tab via the Player Registrations Officer role section.

v2.3 USER MANUAL

Hitting Your Marks on the Drag Strip

(Lab Interface BLM) Acceleration

Mac Software Manual for FITstep Pro Version 2

szen Eighteen Full Manual 2010 szen Corp

Computer Scorekeeping Procedures

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

Side Length, Perimeter, and Area of a Rectangle

Inventory User Guide

Tru Flight TRUFLIGHT INSTALLATION GUIDE TRUGOLF.COM

mycricketsupport.cricket.com.au General Tips.. Page 2 Wrong Batsman?.. Page 3 Wrong Bowler?.. Page 4 Editing a current over Page 5

MoLE Gas Laws Activities

FOOTBALL WEST. Sports TG User Guide. Club Administrators

DIVE MEET SCORING INSTRUCTIONS. Day before meet

Introducing Version 7R2

BIOL 101L: Principles of Biology Laboratory

Club s Homepage Welcome Club Calendar Logout Add a Request Play Date Requested Time Hole Selection # of Tee Times Break Link

Steltronic StelPad User Guide

For running only the scoresheet application without any video features only some very basic hardware / software requirements have to be fulfilled:

What a Drag! Evaluation copy. Make observations and predictions about shoes. Measure the force needed to pull different shoes across a surface.

Quintic Automatic Putting Report

User Guide. Version Mindjet

Air Ball! Evaluation copy

Another window pops up where you can input some parameters (called System Preferences) for your team as shown

Trial # # of F.T. Made:

Start the Polars program and load this file by using the explorer tab on the left side. You will get following picture:

Gravity: How fast do objects fall? Teacher Version (Grade level: 4 7)

HPICAL Operation & Data Logging Procedures. Click spacebar to advance through slides 1

How to run a club night

Student Exploration: Distance-Time Graphs

Nucula. Nucula User Guide to Work Records

Experiment 11: The Ideal Gas Law

Add this important safety precaution to your normal laboratory procedures:

New Jersey Travel Team Registration Handbook 2010/2011 Season Contents

TOURNAMENT TEAM REGISTRATION INSTRUCTIONS:

Procedure 1: Volume vs. Pressure 1.) Using the lap tops, go to the Physics Education Technology from the University of Colorado at:

ONSIGHT CONNECT FOR SMARTPHONES GUIDE

Tutorial 6a Manual Digitisation

survey/doa5lr/

2017/2018 Club Director Club Administrator Instructions

GHSA Swimming/Diving POP School User s Guide

Instant Trapper. User Guide

Club s Homepage Use this feature to return the club s website.

Computer Scorekeeping Procedures Page 1

Contents DE LA SALLE COLLEGE OLLIE USAGE GUIDE 2

Inventor Hole Notes: How to Annotate with Drill Numbers Not Diameters Author: David Ponka, Senior Applications Expert Manufacturing

Click on the Sequential Push Tool button you will then see the Sequential Push Control Panel.

Shooting Target Game. The user will be able to input a player s name and destroy a predefined number of dartboards before the game ends.

BoatMaster V2. User Manual

Encountering Condi.ons

Ball Toss. Vernier Motion Detector

User Guide. Two-Wheeled Add-on. Created By: A-Lab Software Limited. Date Created: Feb Date Modified: Feb Revision: 1.

Transcription:

SCRATCH CHALLENGE #3 Objective: Demonstrate your understanding of scratch by designing the pong game. **View this Pong Game PDF for the instructions on how to design the pong game.** Scroll down for the instructions!

SCRATCH CHALLENGE #3 - PONG GAME Points Do you have? Possible Making the pong game, by following the PDF instructions. 50 Points Earne YOU MUST MAKE THESE CHANGES TO THE GAME! After EVERY 5 paddle hits of the ball, the ball should SLOWLY increase speed, until the counter reaches 15, then the ball speed should remain 20 constant. Once a goal is scored the ball should reset to its original speed of When a goal is scored or the green flag is clicked the paddles should reset 15 to their starting position. After the ball strikes the score zones, the word GOAL should be displayed 15 on the center of the screen. Total for Scratch #3 100 GRADE Teacher's initials

Stage 1 Stage 1 will help you to create your background image, score zones, paddles (bats) and ball.

Getting Started Open SCRATCH 1. Save As. 2. H Drive. 3. SCRATCH PROJECTS. 4. File name = Pong QUICK QUESTION: Why are you saving your file BEFORE you have changed anything?

Creating the background 1. You need to select stage and background. 2. Use the paint bucket to color in the background. 3. Use the line tool to create the center line. 4. Use the rectangle tool to create the score zones in two contrasting colors I have used red and blue in the example.

Creating the paddles part 1 1. You need to delete the cat sprite. 2. Right click and select delete.

Creating the paddles part 2 1. Select paint new sprite. 2. Use the rectangle tool to create a suitable paddle. 3. Select OK. 4. Right click to duplicate the paddle for player #2.

Creating the ball part 1 1. Select Chose new sprite from file. 2. Select the Things folder. 3. Search for an appropriate ball sprite to use. 4. Press OK.

Creating the ball part 2 1. You need to shrink the ball using the shrink sprite tool. 2. Hover over the ball sprite and click your mouse to shrink it to an appropriate size for your game. 3. Then, re-arrange the paddles to the start position.

Stage 2 Getting the paddles to move up and down. Stage 2 will help you to make the player 1 and player 2 paddle controls to move them up and down on the Y axis.

Making the paddles move Player #1 1. Select the first paddle(sprite1). 2. Create the script shown above. 3. Right click to duplicate the script, then change the key to z and -10 to move the paddle down.

Making the paddles move Player #2 1. Select the first paddle (sprite1). 2. Drag the script over Sprite2 to copy the script for player #2. 3. Select the second paddle (sprite 2), right click to duplicate the script, then change the keys to up arrow and down arrow and the values 10 and -10 as per the previous script.

Stage 3 Getting the ball to move in a fairly random manner. Stage 3 will help you to make the ball bounce off the sides of the game area with a simple script.

Making the ball move 1. Select the ball (sprite3). 2. Create the script shown above. 3. Test the ball uses random directions by starting and stopping the game 2-3 times.

Stage 4 Playing the game. Stage 4 will help you bounce the ball off the paddles so that the game can be played.

Setting up the paddles Use this operator to set up the direction instructions. 1. You need to create an IF statement for the behavior of each sprite, within the ball sprite. 2. Select the ball (sprite3), create the statements above. 3. Move them into the correct place in the ball script. 4. Don t forget to test that they work!

Stage 5 The score board(s). Stage 5 will help you create scores for your game, using the red and blue score zones that you set up at the very start. Remember blue = player 1 and red = player 2.

Setting up the score board part 1 1. You need to create variables for each player. 2. Select the ball (sprite3). 3. Go to the variables options and select make a variable. 4. Name the variable Player1, then repeat for Player2.

Setting up the score board part 2 To select the score zone colour click on the colored square for the dropper to come up, then click the dropper on the score zone. 1. Create the if statements above to define the rules for scoring points. 2. Then drag them into the forever command below the other if statements.

Stage 6 Stage 6 will help you refine the scoring system and the starting position for the ball to make the game more accurate

Re-setting the scores 1. Use the set variable command to re-set the scores to zero each time the game is stopped and started again. 2. Don t forget to test it.

Re-positioning the ball 1. After a point has been scored the ball should be returned to the centre of the screen. 2. Use the go to motion script adjustments above to create this.

Adding a pause 1. Adding a delay gives the players time to re-position their paddles for the next point. 2. Use the wait control script adjustments above to create this.

Changing direction Check that you have set the direction for the correct player. 1. Adding a delay gives the players time to re-position their paddles for the next point. 2. Use the point in direction motion script and pick random operator.

YOU MUST MAKE THESE CHANGES TO THE GAME! After EVERY 5 paddle hits of the ball, the ball should SLOWLY increase speed, until the counter reaches 15, then the ball speed should remain constant. Once a goal is scored the ball should reset to its original speed of 3. When a goal is scored or the green flag is clicked the paddles should reset to their starting position. After the ball strikes the score zones, the word GOAL should be displayed on the center of the screen.

INCREASING THE BALL SPEED - PART 1 Make a Variable and name it counter. Arrange ALL the blocks shown, to increase the speed of the ball after EVERY 5 paddle hits. Once the counter reaches 15 the ball speed should remain a constant speed. Place the script in the ball sprite. Once a goal is scored the ball should reset to it original speed.

INCREASING THE BALL SPEED - PART 2 RESETTING THE COUNTER WHEN THE GREEN FLAG IS CLICKED THE COUNTER SHOULD RESET TO 0. ADD A BLOCK UNDER THE TO RESET COUNTER. ONCE A GOAL IS SCORED THE COUNTER SHOULD RESET TO 0. ADD A BLOCK UNDER THE BLOCK TO RESET COUNTER AFTER A GOAL IS SCORED

HOW TO RESET THE PADDLES POSTION THE PADDLES CLOSE TO THE SCORE ZONES THE BALL CAN T TOUCH BEHIND THE PADDLE Use the Broadcast block(s) to reset the paddles to their starting position. When the ball hit the scoring zones, the ball should broadcast GOAL, when the paddles receive GOAL the paddles reset to their starting position.

RESETTING THE PADDLES - PART 1 1. LOCATE BROADCAST BLOCK UNDER CONTROL. 2. CLICK THE DOWN ARROW AND CLICK NEW. 3. MESSAGE NAME = GOAL 4. ADD THE BROADCAST BLOCK TO THE BALL SPRITE SCRIPT UNDER THE AND

RESETTING THE PADDLES - PART 2 1. LOCATE THE WHEN I RECEIVE BLOCK UNDER CONTROL. 2. CLICK THE DROP DOWN ARROW FROM THE WHEN I RECEIVE BLOCK AND SELECT GOAL. 3. PLACE THE WHEN I RECEIVE BLOCK IN BOTH PADDLE 1 SPRITE and PADDLE 2 SPRITE SCRIPT. 4. ADD A BLOCK UNDER THE WHEN I RECEIVE BLOCK. SET THE X: and Y: COORDINATES TO THE STARTING POSITION OF THE PADDLE. STARTING POSITION = CLOSE TO SCORE ZONES 5. PLACE THE BLOCK IN BOTH PADDLE 1 SPRITE and PADDLE 2 SPRITE SCRIPT. 6. ADD A BLOCK UNDER THE SET THE X: and Y: COORDINATES TO THE STARTING POSITION OF THE PADDLE. STARTING POSITION = CLOSE TO SCORE ZONES.

DISPLAYING THE WORD GOAL ON THE SCREEN AFTER THE BALL HITS THE SCORE ZONES 6. CLICK SCRIPTS AND CREATE THE SCRIPT SHOWN. 1. CLICK STAGE 2. CLICK BACKGROUND 3. CLICK COPY 4. CLICK EDIT 5. CLICK THE TEXT TOOL AND WRITE GOAL ABOVE THE CENTER OF THE BACKGROUND. CHOOSE A COLOR OTHER THAN BLACK AND THE SCORE ZONE COLORS. CHOOSE ANY FONT.