SlideShare a Scribd company logo
1 of 28
Pong! 
“The oldest commercially 
available game in history” 
Resources created from the video tutorials provided by David Phillips on http://www.teach-ict.com
Stage 1 
• Before you start to script the game you need 
to create the assets. 
• Stage 1 will help you to create your 
background image, score zones, paddles (bats) 
and ball.
Getting Started – Open SCRATCH 
1. Log in 
2. Open a New Project 
3. Rename it 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 assets 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 color 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 
• Improvements 
• Stage 6 will help you refine the scoring system 
and the starting position for the ball to make 
the game more accurate
Improvement #1 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.
Improvement #2 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.
Improvement #3 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.
Improvement #4 Changing direction 
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. 
Check that you have 
set the direction for 
the correct player.
Summary 
• The scripts that you will use have been 
summarised here for you to check your work 
against.
Sprite1
Sprite2
Sprite3
Why not try . . . 
• 4 players in the game? 
• Changing the sprites to be more interesting? 
• Making the paddles shorter? 
• Speeding up the ball? 
• Making the score zone smaller, maybe add goal 
posts? 
• Changing the colors/layout to make it more child 
friendly? 
• Changing the layout/colors to make it more 
appealing to an older audience? 
• Writing instructions for the technical user and end 
users?

More Related Content

What's hot

메탈릭차일드 완성보고서 (지스타 컨퍼런스 버전)
메탈릭차일드 완성보고서 (지스타 컨퍼런스 버전)메탈릭차일드 완성보고서 (지스타 컨퍼런스 버전)
메탈릭차일드 완성보고서 (지스타 컨퍼런스 버전)Daehoon Han
 
An introduction to Scratch
An introduction to ScratchAn introduction to Scratch
An introduction to ScratchPiers Midwinter
 
Introduction to scratch
Introduction to scratchIntroduction to scratch
Introduction to scratchemreyz
 
Coding Basics with Scratch
Coding Basics with ScratchCoding Basics with Scratch
Coding Basics with ScratchNicole Baratta
 
Scratch programming
Scratch programmingScratch programming
Scratch programmingYvonieDoria
 
Lesson 1: Scratch Computer Programming
Lesson 1: Scratch Computer ProgrammingLesson 1: Scratch Computer Programming
Lesson 1: Scratch Computer ProgrammingSeniorInfants
 
Scratch for intermediates course
Scratch for intermediates courseScratch for intermediates course
Scratch for intermediates courseMatthew Parry
 
Scratch programming introduction to game creation
Scratch programming  introduction to game creationScratch programming  introduction to game creation
Scratch programming introduction to game creationAnkita Shirke
 
Optical illusions
Optical illusionsOptical illusions
Optical illusionsMr G
 
Matlab Gui프로젝트(미로찾기)
Matlab Gui프로젝트(미로찾기)Matlab Gui프로젝트(미로찾기)
Matlab Gui프로젝트(미로찾기)yeon Heo
 
個人開発でゲーム一本完成させるまでの苦難の道のり 〜企画編〜
個人開発でゲーム一本完成させるまでの苦難の道のり 〜企画編〜個人開発でゲーム一本完成させるまでの苦難の道のり 〜企画編〜
個人開発でゲーム一本完成させるまでの苦難の道のり 〜企画編〜narumi_
 

What's hot (20)

Scratch Lesson 3
Scratch Lesson 3Scratch Lesson 3
Scratch Lesson 3
 
Scratch Project
Scratch ProjectScratch Project
Scratch Project
 
메탈릭차일드 완성보고서 (지스타 컨퍼런스 버전)
메탈릭차일드 완성보고서 (지스타 컨퍼런스 버전)메탈릭차일드 완성보고서 (지스타 컨퍼런스 버전)
메탈릭차일드 완성보고서 (지스타 컨퍼런스 버전)
 
An introduction to Scratch
An introduction to ScratchAn introduction to Scratch
An introduction to Scratch
 
Mini Scratch Unit
Mini Scratch UnitMini Scratch Unit
Mini Scratch Unit
 
Introduction to scratch
Introduction to scratchIntroduction to scratch
Introduction to scratch
 
Coding Basics with Scratch
Coding Basics with ScratchCoding Basics with Scratch
Coding Basics with Scratch
 
Scratch programming
Scratch programmingScratch programming
Scratch programming
 
Lecture 1.pptx
Lecture 1.pptxLecture 1.pptx
Lecture 1.pptx
 
Lesson 1: Scratch Computer Programming
Lesson 1: Scratch Computer ProgrammingLesson 1: Scratch Computer Programming
Lesson 1: Scratch Computer Programming
 
Scratch for intermediates course
Scratch for intermediates courseScratch for intermediates course
Scratch for intermediates course
 
Scratch Basics
Scratch BasicsScratch Basics
Scratch Basics
 
Minecraft
Minecraft Minecraft
Minecraft
 
Kahoot Tutorial
Kahoot TutorialKahoot Tutorial
Kahoot Tutorial
 
Scratch programming introduction to game creation
Scratch programming  introduction to game creationScratch programming  introduction to game creation
Scratch programming introduction to game creation
 
Optical illusions
Optical illusionsOptical illusions
Optical illusions
 
Matlab Gui프로젝트(미로찾기)
Matlab Gui프로젝트(미로찾기)Matlab Gui프로젝트(미로찾기)
Matlab Gui프로젝트(미로찾기)
 
Oculus rift
Oculus riftOculus rift
Oculus rift
 
個人開発でゲーム一本完成させるまでの苦難の道のり 〜企画編〜
個人開発でゲーム一本完成させるまでの苦難の道のり 〜企画編〜個人開発でゲーム一本完成させるまでの苦難の道のり 〜企画編〜
個人開発でゲーム一本完成させるまでの苦難の道のり 〜企画編〜
 
Scratch Lesson Plan
Scratch Lesson PlanScratch Lesson Plan
Scratch Lesson Plan
 

Viewers also liked

Making pong in scratch
Making pong in scratchMaking pong in scratch
Making pong in scratchjoysuliman
 
Build a basic maze in scratch (v1)
Build a basic maze in scratch (v1)Build a basic maze in scratch (v1)
Build a basic maze in scratch (v1)joysuliman
 
Scratch Pong Remix Tutorial
Scratch Pong Remix TutorialScratch Pong Remix Tutorial
Scratch Pong Remix Tutorialjwmcdonald24
 
Scratch project ideas
Scratch project ideasScratch project ideas
Scratch project ideasDavid Noble
 
Instructions for Scratch Pong Game Adaptation to use with MaKey MaKey
Instructions for Scratch Pong Game Adaptation to use with MaKey MaKeyInstructions for Scratch Pong Game Adaptation to use with MaKey MaKey
Instructions for Scratch Pong Game Adaptation to use with MaKey MaKeyRenee Neumeier
 
La cuina a Egipte. 1r ESO
La cuina a Egipte. 1r ESOLa cuina a Egipte. 1r ESO
La cuina a Egipte. 1r ESOweblallauna
 
Claves para mejorar los aprendizajes integrando las tecnologías móviles en la...
Claves para mejorar los aprendizajes integrando las tecnologías móviles en la...Claves para mejorar los aprendizajes integrando las tecnologías móviles en la...
Claves para mejorar los aprendizajes integrando las tecnologías móviles en la...PERE MARQUES
 

Viewers also liked (9)

Making pong in scratch
Making pong in scratchMaking pong in scratch
Making pong in scratch
 
Build a basic maze in scratch (v1)
Build a basic maze in scratch (v1)Build a basic maze in scratch (v1)
Build a basic maze in scratch (v1)
 
Scratch Pong Remix Tutorial
Scratch Pong Remix TutorialScratch Pong Remix Tutorial
Scratch Pong Remix Tutorial
 
Scratch project ideas
Scratch project ideasScratch project ideas
Scratch project ideas
 
JUEGO DE PONG - SCRATCH
JUEGO DE PONG - SCRATCH JUEGO DE PONG - SCRATCH
JUEGO DE PONG - SCRATCH
 
Instructions for Scratch Pong Game Adaptation to use with MaKey MaKey
Instructions for Scratch Pong Game Adaptation to use with MaKey MaKeyInstructions for Scratch Pong Game Adaptation to use with MaKey MaKey
Instructions for Scratch Pong Game Adaptation to use with MaKey MaKey
 
La cuina a Egipte. 1r ESO
La cuina a Egipte. 1r ESOLa cuina a Egipte. 1r ESO
La cuina a Egipte. 1r ESO
 
Kolorearen teoria
Kolorearen teoriaKolorearen teoria
Kolorearen teoria
 
Claves para mejorar los aprendizajes integrando las tecnologías móviles en la...
Claves para mejorar los aprendizajes integrando las tecnologías móviles en la...Claves para mejorar los aprendizajes integrando las tecnologías móviles en la...
Claves para mejorar los aprendizajes integrando las tecnologías móviles en la...
 

Similar to Pong on SCRATCH Directions

Fundamentals of Learning Game Design - ATD CIC 2017
Fundamentals of Learning Game Design - ATD CIC 2017Fundamentals of Learning Game Design - ATD CIC 2017
Fundamentals of Learning Game Design - ATD CIC 2017Sharon Boller
 
Scratch for kids syllabus for 5 hours by bibek pandit
Scratch for kids syllabus for 5 hours by bibek panditScratch for kids syllabus for 5 hours by bibek pandit
Scratch for kids syllabus for 5 hours by bibek panditBibekPandit2
 
Scratch Tutorial - Basic Pong
Scratch Tutorial - Basic PongScratch Tutorial - Basic Pong
Scratch Tutorial - Basic PongInstantTechInfo
 
Analog game gdd_revised
Analog game gdd_revisedAnalog game gdd_revised
Analog game gdd_revisedjowyn
 
New Microsoft PowerPoint Presentation.pptx
New Microsoft PowerPoint Presentation.pptxNew Microsoft PowerPoint Presentation.pptx
New Microsoft PowerPoint Presentation.pptxnilesh405711
 
1. initial plans(2)[1]
1. initial plans(2)[1]1. initial plans(2)[1]
1. initial plans(2)[1]Luke Ross
 
1. initial plans(2)[1]
1. initial plans(2)[1]1. initial plans(2)[1]
1. initial plans(2)[1]Luke Ross
 
Work Flow for 2D Game
Work Flow for 2D GameWork Flow for 2D Game
Work Flow for 2D Gamebowes96123
 
TornadoBrickSmasherUserManual
TornadoBrickSmasherUserManualTornadoBrickSmasherUserManual
TornadoBrickSmasherUserManualClayton Schembri
 
Your Game Analytics Playbook
Your Game Analytics PlaybookYour Game Analytics Playbook
Your Game Analytics PlaybookGameAnalytics
 
Designing games with kodu_game_lab_v1
Designing games with kodu_game_lab_v1Designing games with kodu_game_lab_v1
Designing games with kodu_game_lab_v1KerryJTurner
 

Similar to Pong on SCRATCH Directions (20)

Game design document
Game design document Game design document
Game design document
 
Game design document
Game design document Game design document
Game design document
 
Fundamentals of Learning Game Design - ATD CIC 2017
Fundamentals of Learning Game Design - ATD CIC 2017Fundamentals of Learning Game Design - ATD CIC 2017
Fundamentals of Learning Game Design - ATD CIC 2017
 
Scratch for kids syllabus for 5 hours by bibek pandit
Scratch for kids syllabus for 5 hours by bibek panditScratch for kids syllabus for 5 hours by bibek pandit
Scratch for kids syllabus for 5 hours by bibek pandit
 
Scratch Tutorial - Basic Pong
Scratch Tutorial - Basic PongScratch Tutorial - Basic Pong
Scratch Tutorial - Basic Pong
 
Forest Archery Game
Forest Archery GameForest Archery Game
Forest Archery Game
 
Analog game gdd_revised
Analog game gdd_revisedAnalog game gdd_revised
Analog game gdd_revised
 
Forest Archery Game
Forest Archery GameForest Archery Game
Forest Archery Game
 
New Microsoft PowerPoint Presentation.pptx
New Microsoft PowerPoint Presentation.pptxNew Microsoft PowerPoint Presentation.pptx
New Microsoft PowerPoint Presentation.pptx
 
Scratch Lesson 6
Scratch Lesson 6Scratch Lesson 6
Scratch Lesson 6
 
Forest archery game
Forest archery gameForest archery game
Forest archery game
 
1. initial plans(2)[1]
1. initial plans(2)[1]1. initial plans(2)[1]
1. initial plans(2)[1]
 
1. initial plans(2)[1]
1. initial plans(2)[1]1. initial plans(2)[1]
1. initial plans(2)[1]
 
Work Flow for 2D Game
Work Flow for 2D GameWork Flow for 2D Game
Work Flow for 2D Game
 
TornadoBrickSmasherUserManual
TornadoBrickSmasherUserManualTornadoBrickSmasherUserManual
TornadoBrickSmasherUserManual
 
Pong
PongPong
Pong
 
Your Game Analytics Playbook
Your Game Analytics PlaybookYour Game Analytics Playbook
Your Game Analytics Playbook
 
Maths L2L teamwork
Maths L2L teamworkMaths L2L teamwork
Maths L2L teamwork
 
Scratch Animation
Scratch AnimationScratch Animation
Scratch Animation
 
Designing games with kodu_game_lab_v1
Designing games with kodu_game_lab_v1Designing games with kodu_game_lab_v1
Designing games with kodu_game_lab_v1
 

Recently uploaded

A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfakmcokerachita
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfUmakantAnnand
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 

Recently uploaded (20)

Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdf
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.Compdf
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 

Pong on SCRATCH Directions

  • 1. Pong! “The oldest commercially available game in history” Resources created from the video tutorials provided by David Phillips on http://www.teach-ict.com
  • 2. Stage 1 • Before you start to script the game you need to create the assets. • Stage 1 will help you to create your background image, score zones, paddles (bats) and ball.
  • 3. Getting Started – Open SCRATCH 1. Log in 2. Open a New Project 3. Rename it PONG QUICK QUESTION: Why are you saving your file BEFORE you have changed anything?
  • 4. 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.
  • 5. Creating the paddles part 1 1. You need to delete the cat sprite. 2. Right click and select delete.
  • 6. 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.
  • 7. 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.
  • 8. 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 assets to the “start position”.
  • 9. 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.
  • 10. 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.
  • 11. 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.
  • 12. 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.
  • 13. 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.
  • 14. Stage 4 • Playing the game. • Stage 4 will help you bounce the ball off the paddles so that the game can be played.
  • 15. 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!
  • 16. 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.
  • 17. 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”.
  • 18. Setting up the score board part 2 To select the score zone color 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.
  • 19. Stage 6 • Improvements • Stage 6 will help you refine the scoring system and the starting position for the ball to make the game more accurate
  • 20. Improvement #1 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.
  • 21. Improvement #2 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.
  • 22. Improvement #3 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.
  • 23. Improvement #4 Changing direction 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. Check that you have set the direction for the correct player.
  • 24. Summary • The scripts that you will use have been summarised here for you to check your work against.
  • 28. Why not try . . . • 4 players in the game? • Changing the sprites to be more interesting? • Making the paddles shorter? • Speeding up the ball? • Making the score zone smaller, maybe add goal posts? • Changing the colors/layout to make it more child friendly? • Changing the layout/colors to make it more appealing to an older audience? • Writing instructions for the technical user and end users?